Commit Graph

2 Commits

Author SHA1 Message Date
Sergey Dubovyk
dc803862f1 Types extension (#63)
* feat: basic merging of type tree extensions

* feat: redefine type tree

* feat: add oas3-schema validators redefining

* fix: update test suite for custom type extension

* feat: add custom rule for allOf validation in OpenAPIParameter

* fix: update test suite for allOf in parameter

* custom: add rule for redefined parameter

* fix: update tests with type-extended files

* chore: fix typo

Co-Authored-By: Adam Altman <adam@rebilly.com>

* fix: typo

Co-Authored-By: Roman Hotsiy <gotsijroman@gmail.com>

* fix: typo

Co-Authored-By: Roman Hotsiy <gotsijroman@gmail.com>

* api: split define/extend for typesRedefinition

* fix: update lint rules

* wip: update definition redefine

* feat: changed rulesExtensions format to more middlewareAlike approach

* fix: updated tests

* fix: update tests

* wip: update public API for overloading rules & refactoring

* refactor: public api for getRule

* feat: allow string severity levels

* feat: updated public API for rules extension

* feat: update config for lint rules

* docs: added future todo

* feat: added preloading of all definitions

* feat: default enabled for custom rules

* docs: update example config

* fix: update test

* fix: pass config to AbstractVisitor

* refactoring: remove inheritance for default visitors & added helper for error messages

* fix: update tests

* fix: error output

* update: no need in name param for custom rules

* feat: add loading config manually
2019-12-06 11:19:02 +02:00
Sergey Dubovyk
6ea8e07a59 Types extension (#55)
* feat: basic merging of type tree extensions

* feat: redefine type tree

* feat: add oas3-schema validators redefining

* fix: update test suite for custom type extension

* feat: add custom rule for allOf validation in OpenAPIParameter

* fix: update test suite for allOf in parameter

* custom: add rule for redefined parameter

* fix: update tests with type-extended files

* chore: fix typo

Co-Authored-By: Adam Altman <adam@rebilly.com>

* fix: typo

Co-Authored-By: Roman Hotsiy <gotsijroman@gmail.com>

* fix: typo

Co-Authored-By: Roman Hotsiy <gotsijroman@gmail.com>

* api: split define/extend for typesRedefinition

* fix: update lint rules

* wip: update definition redefine

* feat: changed rulesExtensions format to more middlewareAlike approach

* fix: updated tests

* fix: update tests

* wip: update public API for overloading rules & refactoring

* refactor: public api for getRule

* feat: allow string severity levels

* feat: updated public API for rules extension

* feat: update config for lint rules

* docs: added future todo
2019-12-04 16:57:43 +02:00