mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-09 20:57:44 +00:00
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`E2E lint assertion-string-property-min-length 1`] = `
|
|
|
|
validating /openapi.yaml...
|
|
[1] openapi.yaml:31:17 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema
|
|
|
|
minLength assertion failed because the Schema didn't meet the assertions: Required property minLength inside a string property
|
|
|
|
29 | application/json:
|
|
30 | schema:
|
|
31 | type: object
|
|
| ^^^^^^^^^^^^
|
|
32 | required:
|
|
| ^^^^^^^^^^
|
|
… | < 18 more lines >
|
|
51 | type: string
|
|
| ^^^^^^^^^^^^
|
|
|
|
Error was generated by the minLength assertion rule.
|
|
|
|
|
|
[2] openapi.yaml:46:21 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema/properties/c
|
|
|
|
minLength assertion failed because the Schema didn't meet the assertions: Required property minLength inside k string property
|
|
|
|
44 | minLength: 2
|
|
45 | c:
|
|
46 | type: object
|
|
| ^^^^^^^^^^^^
|
|
47 | required:
|
|
| ^^^^^^^^^^
|
|
… | < 3 more lines >
|
|
51 | type: string
|
|
| ^^^^^^^^^^^^
|
|
|
|
Error was generated by the minLength assertion rule.
|
|
|
|
|
|
/openapi.yaml: validated in <test>ms
|
|
|
|
❌ Validation failed with 2 errors.
|
|
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
|
|
|
|
|
|
`;
|