swagger-ui version: 2.1.4
{
"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": {
"type": "array"
}
}
}
}
}
}
}
For example, schema definition for json-schema its self has this.