-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail reference resolving with array type without items property #2074
Comments
It's not supported. Per the specification, |
@fehguy How about this: {
"swagger": "2.0",
"basePath": "/api",
"info": {
"title": "sample",
"version": "1.0.0"
},
"paths": {
"/foo": {
"get": {
"description": "Foo",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "A list of pets.",
"schema": { "$ref": "http://json-schema.org/schema#" }
}
}
}
}
}
} |
I don't know what you mean--I do suggest reading the specification so you can understand what is possible. |
I got it. |
@fehguy Please teach me where is the description that |
@MugeSo the swagger spec, is based on JSON-Schema, in the Schema Object you'll note a reference to However, that said. Its a simple property, and you use this description as a reference... https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#itemsObject |
@ponelat Thanks, I understand I disappointed found that we can not reference many of existing json schema... Thanks a lot. |
@MugeSo - as someone who was involved in writing the spec, I can tell you the intent - |
swagger-ui version: 2.1.4
For example, schema definition for
json-schema
its self has this.The text was updated successfully, but these errors were encountered: