mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-09 12:47:48 +00:00
* 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>
33 lines
663 B
JavaScript
33 lines
663 B
JavaScript
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`E2E lint assertions-max-length-array-error 1`] = `
|
|
|
|
validating /openapi.yaml...
|
|
[1] openapi.yaml:22:9 at #/paths/~1pet~1findByStatus/get/tags
|
|
|
|
Operation tags should have maximum 2 items
|
|
|
|
20 | summary: summary example
|
|
21 | tags:
|
|
22 | - foo
|
|
| ^^^^^
|
|
23 | - baz
|
|
| ^^^^^
|
|
24 | - bar
|
|
| ^^^^^
|
|
25 | responses:
|
|
| ^
|
|
26 | '200':
|
|
27 | description: example description
|
|
|
|
Error was generated by the tags-max-length assertion rule.
|
|
|
|
|
|
/openapi.yaml: validated in <test>ms
|
|
|
|
❌ Validation failed with 1 error.
|
|
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
|
|
|
|
|
|
`;
|