You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I omit the description field from a response, the error I get is "200 property should have required property $ref". It would be better if spectral told the user that the description field is missing.
To Reproduce
Remove the description field from a response and run spectral lint
$ npx spectral lint test.yaml
OpenAPI 3.x detected
.../test.yaml
1:1 warning oas3-api-servers OpenAPI `servers` must be present and non-empty array.
1:1 warning openapi-tags OpenAPI object should have non-empty `tags` array.
2:6 warning info-contact Info object should contain `contact` object.
2:6 warning info-description OpenAPI object info `description` must be present and non-empty string.
8:9 warning operation-description Operation `description` must be present and non-empty string.
12:9 warning operation-tag-defined Operation tags should be defined in global tags.
14:15 error oas3-schema `200` property should have required property `$ref`
Expected behavior
spectral should tell me that the description field is missing
Describe the bug
When I omit the description field from a response, the error I get is "200 property should have required property $ref". It would be better if spectral told the user that the description field is missing.
To Reproduce
Remove the description field from a response and run
spectral lint
Expected behavior
spectral should tell me that the description field is missing
Environment (remove any that are not applicable):
Additional context
The text was updated successfully, but these errors were encountered: