Files
redocly-cli/__tests__/lint/no-invalid-schema-examples-oas3.1-error/snapshot.js
2022-09-04 21:07:45 -05:00

47 lines
1.3 KiB
JavaScript

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E lint no-invalid-schema-examples-oas3.1-error 1`] = `
validating /openapi.yaml...
[1] openapi.yaml:34:21 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/one/example
Example value must conform to the schema: type must be integer,string.
32 | - string
33 | example:
34 | - test
| ^^^^^^
35 | two:
| ^
36 | description: two
37 | type:
referenced from openapi.yaml:29:19 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/one
Error was generated by the no-invalid-schema-examples rule.
[2] openapi.yaml:41:23 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/two/examples/1
Example value must conform to the schema: type must be string.
39 | examples:
40 | - test
41 | - 25
| ^^
42 | responses:
43 | '200':
referenced from openapi.yaml:36:19 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/two
Error was generated by the no-invalid-schema-examples rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 2 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
`;