mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`E2E lint assertions-ref-forbidden-error 1`] = `
|
|
|
|
validating /openapi.yaml...
|
|
[1] openapi.yaml:47:17 at #/paths/~1pets/get/responses/default/content/application~1json/schema
|
|
|
|
Response MediaType schema should NOT have a ref
|
|
|
|
45 | application/json:
|
|
46 | schema:
|
|
47 | $ref: ./components/schemas/Error.yaml
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
48 | /owners:
|
|
49 | $ref: components/paths/Owners.yaml
|
|
|
|
Error was generated by the ref-forbidden assertion rule.
|
|
|
|
|
|
[2] openapi.yaml:49:5 at #/paths/~1owners
|
|
|
|
PathItems should NOT should have a ref
|
|
|
|
47 | $ref: ./components/schemas/Error.yaml
|
|
48 | /owners:
|
|
49 | $ref: components/paths/Owners.yaml
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
50 | components:
|
|
51 | schemas:
|
|
|
|
Error was generated by the ref-forbidden-no-property assertion 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.
|
|
|
|
|
|
`;
|