mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`E2E lint deprecated-apiDefinitions 1`] = `
|
|
|
|
The 'apiDefinitions' field is deprecated. Use apis instead. Read more about this change: https://redocly.com/docs/api-registry/guides/migration-guide-config-file/#changed-properties
|
|
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:1:1 at #/apiDefinitions
|
|
|
|
Property \`apiDefinitions\` is not expected here.
|
|
|
|
1 | apiDefinitions:
|
|
| ^^^^^^^^^^^^^^
|
|
2 | main: ./openapi.yaml
|
|
3 |
|
|
|
|
Warning was generated by the configuration spec rule.
|
|
|
|
|
|
[2] redocly.yaml:4:1 at #/lint
|
|
|
|
Property \`lint\` is not expected here.
|
|
|
|
Did you mean:
|
|
- links
|
|
- l10n
|
|
- logo
|
|
- env
|
|
|
|
2 | main: ./openapi.yaml
|
|
3 |
|
|
4 | lint:
|
|
| ^^^^
|
|
5 | rules:
|
|
6 | info-contact: warn
|
|
|
|
Warning was generated by the configuration spec rule.
|
|
|
|
|
|
⚠️ Your config has 2 warnings.
|
|
validating /openapi.yaml...
|
|
[1] 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
|
|
|
|
Woohoo! Your API description is valid. 🎉
|
|
You have 1 warning.
|
|
|
|
|
|
`;
|