Closed benjamin-mogensen closed 1 month ago
Also reported by Medline.
This ticket has been labeled jira. A tracking ticket in Stoplight's Jira (STOP-557
) has been created.
:tada: This issue has been resolved in version 1.19.0 :tada:
The release is available on @stoplight/spectral-rulesets-1.19.0
Your semantic-release bot :package::rocket:
Describe the bug The OAS file below has a wrongly declared array in the response. It states
type: array
and last line, and is missing anitems
key. Spectral does not catch this as an error. However, deploying such OAS in Apigee will not work as Apigeee uses Swagger parser which catches this error.To Reproduce
oas-array-wrong.yaml
spectral lint oas-array-wrong.yaml
No results with a severity of 'error' found!
Expected behavior The wrongly declared array should be treated as an error as you cannot have an array declared without stating what type the items are.
Screenshots NA
Environment (remove any that are not applicable):