openapi-examples-validator
Version:
Validates embedded examples in OpenAPI-JSONs
78 lines (77 loc) • 2.06 kB
JSON
{
"swagger": "2.0",
"info": {
"title": "Simple API overview",
"version": "v2"
},
"paths": {
"/": {
"get": {
"operationId": "listVersionsv2",
"summary": "List API versions",
"produces": [
"application/json"
],
"responses": {
"200": {
"$ref": "external-examples-schema-referencing-fraction.json"
},
"300": {
"description": "300 response",
"schema": {
"type": "object",
"required": [
"versions"
],
"properties": {
"versions": {
"type": "array",
"items": {
"type": "object",
"required": [
"status",
"id",
"links"
],
"properties": {
"status": {
"type": "string"
},
"updated": {
"type": "string"
},
"id": {
"type": "string"
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"href",
"rel"
],
"properties": {
"href": {
"type": "string"
},
"rel": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"consumes": [
"application/json"
]
}