-
Notifications
You must be signed in to change notification settings - Fork 370
Swagger validation: 'items' inside schema objects should be strictly optional. #245
Comments
/cc @webron |
That's a misinterpretation of the spec. If |
And I don't see any requirements for Should I submit issue in |
Sure, you can submit a ticket on swagger-spec for clarification. The JSON Schema is for the spec is not 100% compliant, and it never will be (mostly due to limitations with JSON Schema, but also due to complexity and maintenance issues). In any case, the JSON Schema is not the source of truth but the spec is. |
We discuss it already many times. And this issue is not about JSON Schema compatibility, This discussion became unrelated to |
OAI/OpenAPI-Specification#333 is definitely unrelated. I was talking about the JSON Schema for the spec as a whole. OAI/OpenAPI-Specification#333 refers to e possible expansion of definition in a future version of the spec. |
It should be clarify in Swagger spec itself. |
This exception is triggered when Schema object is missing 'items'.
But Swagger spec, enforce presence of 'items' only in schema-like objects like for e.g parameters.
But for Schema objects it borrow rules from Draft4, see:
https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#schema-object
http://json-schema.org/latest/json-schema-validation.html#anchor130
The text was updated successfully, but these errors were encountered: