Commit Graph

5 Commits

Author SHA1 Message Date
Andrew Tatomyr
fe405781c5 chore: update stale syntax (#1085) 2023-05-18 09:21:40 +02:00
Roman Hotsiy
9b8c1eb218 chore: fix assertion messages grouping (#950) 2022-11-29 11:00:55 +02:00
Roman Sainchuk
ca70102985 feat: change assertion syntax + rename context -> where (#894) 2022-11-02 08:29:49 +01:00
Anton Kozachuk
55a8029a06 fix: change security-defined rule reporting (#879) 2022-09-26 12:33:36 +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