feat: adjust assertions syntax (#662)

* Support new assertions syntax

* chore: update assertions syntax in tests

* feat: get assertionId from assertion name

* docs: update assertion docs

* chore: run prettier

* test: update snapshots

* fix: do not mutate original rules object

* Update __tests__/lint/assertions-casing-camel-case-error/.redocly.yaml

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

* Update __tests__/lint/assertions-casing-snake-case-error/.redocly.yaml

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

* Update __tests__/lint/assertions-defined-error/.redocly.yaml

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

* test: update snapshots

* code style suggestion

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

* fix: correctly handle nested configs with assertions

* test: correctly merged assertions nested config

* chore: fix types

* chore: run prettier

Co-authored-by: Volodymyr Rutskyi <volodymyrrutskyi@Volodymyrs-MacBook-Pro-2.local>
Co-authored-by: Adam Altman <adam@redoc.ly>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@gmail.com>
This commit is contained in:
volodymyr-rutskyi
2022-05-11 09:42:11 +03:00
committed by GitHub
parent 385216fee6
commit 224565b316
43 changed files with 748 additions and 589 deletions

View File

@@ -20,7 +20,7 @@ Operation tags should have maximum 2 items
26 | '200':
27 | description: example description
Error was generated by the assertion #1 rule.
Error was generated by the tags-max-length assertion rule.
/openapi.yaml: validated in <test>ms