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
{{ message }}
Repository navigation
file shoud be an accepted primitive data type in swagger 2.0 spec #540
An additional primitive data type "file" is used by the Parameter Object and the Response Object to set the parameter type or the response as being a file.
It seems this file data type exception is not accounted for Response object.
To Reproduce
Steps to reproduce the behavior: openapi lint --format stylish spec.yml
Expected behavior
No spec error should be raised.
Logs
spec.yml:
28:19 error spec `type` can be one of the following only: "object", "array", "string", "number", "integer", "boolean", "null".
3:1 warning info-license Info object should contain `license` field.
20:5 warning operation-operationId Operation object should contain `operationId` field.
24:7 warning operation-4xx-response Operation must have at least one `4xx` response.
Activity
amakhrov commentedon Aug 1, 2023
this is basically a blocker for using it with our OAS 2.0 spec
RomanHotsiy commentedon Aug 2, 2023
I raised priority. Thanks.