Files
redocly-cli/__tests__/lint/deprecated-lint/snapshot.js
2024-08-21 11:44:23 +03:00

76 lines
1.6 KiB
JavaScript

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`E2E lint deprecated-lint 1`] = `
The 'lint' field is deprecated. Read more about this change: https://redocly.com/docs/api-registry/guides/migration-guide-config-file/#changed-properties
[1] redocly.yaml:8:1 at #/lint
Property \`lint\` is not expected here.
Did you mean:
- l10n
- env
6 | operation-4xx-response: error
7 |
8 | lint:
| ^^^^
9 | rules:
10 | info-contact: warn
Warning was generated by the configuration spec rule.
[2] redocly.yaml:4:5 at #/apis/api@legacy/lint
Property \`lint\` is not expected here.
Did you mean: root ?
2 | api@legacy:
3 | root: ./openapi.yaml
4 | lint:
| ^^^^
5 | rules:
6 | operation-4xx-response: error
Warning was generated by the configuration spec rule.
⚠️ Your config has 2 warnings.
validating /openapi.yaml...
[1] openapi.yaml:11:7 at #/paths/~1pet~1findByStatus/get/responses
Operation must have at least one \`4XX\` response.
9 | operationId: example
10 | summary: summary example
11 | responses:
| ^^^^^^^^^
12 | '200':
13 | description: example description
Error was generated by the operation-4xx-response rule.
[2] openapi.yaml:2:1 at #/info/contact
Info object should contain \`contact\` field.
1 | openapi: 3.1.0
2 | info:
| ^^^^
3 | title: Example OpenAPI 3 definition.
4 | version: 1.0
Warning was generated by the info-contact rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error and 1 warning.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;