openapi-examples-validator
Version:
Validates embedded examples in OpenAPI-JSONs
35 lines • 1.29 kB
JSON
{
"openapi": "3.0.0",
"paths": {
"/test": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"enum": [
"active",
"inactive",
null
],
"type": "string",
"nullable": true,
"description": "The status of the item"
}
},
"required": [
"status"
]
}
}
}
}
}
}
}
}
}