Commit Graph

2 Commits

Author SHA1 Message Date
Yevhen Smoliy
bdf0e7d8c2 chore: add rule for min length property and reworked assertionsFn (#1029) 2023-03-30 15:08:59 +03:00
Ivan Osypov
a3f955768b feat: support for custom assertions functions (#837)
* feat: support for custom assertions functions

* Comment

* Prettier fix

* Add test and doc

* Prettier fix

* Update .redocly.yaml

* Update packages/core/src/config/types.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* fix: show 'referenced from' in the lint error message

* Add Prettier changes

* Add e2e and change format

* Fixes after cross review

* Fixes after cross review

* Fixes after cross review

* Change custom assertion syntax

* Update test

* add unit test

* Add assertion to test

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/config/types.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/rules/common/assertions/asserts.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/types/redocly-yaml.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Remove console.lo

* Fix types

* fix prettier

* fix prettier

* change assertion return type

* Group assertions message

* Change assertions logic

* Update docs/rules/assertions.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules/assertions.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update documentation

* Update test

* fix comments

* Fix comments

* Fix assertId

* fix tests

* Fix tests

* Documentation update

* Update doc

* Fix comments

* Update snapshots

* Update code

* update assets messages

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Anton Kozachuk <antonkozachuk@Antons-MacBook-Pro.local>
Co-authored-by: Adam Altman <adam@redoc.ly>
2022-09-20 19:42:14 +03:00