openapi-examples-validator
Version:
Validates embedded examples in OpenAPI-JSONs
25 lines (24 loc) • 640 B
JSON
[
{
"type": "Validation",
"message": "must be number",
"keyword": "type",
"instancePath": "/0/id",
"schemaPath": "#/items/properties/id/type",
"params": {
"type": "number"
},
"examplePath": "/paths/~1pets/get/responses/200/content/application~1json/examples/`mrcat/value"
},
{
"type": "Validation",
"message": "must be number",
"keyword": "type",
"instancePath": "/0/id",
"schemaPath": "#/items/properties/id/type",
"params": {
"type": "number"
},
"examplePath": "/paths/~1pets/get/responses/200/content/application~1json/examples/herbert,doggo/value"
}
]