OpenAPI-Specification
OpenAPI-Specification copied to clipboard
schema definitions of type array fail validation
I use 'type: array' json schema to represent typed array responses from my API. Schema validation chokes on this (and swagger-ui needs to render them correctly too)
{
"level": "error",
"domain": "validation",
"keyword": "type",
"message": "instance type (array) does not match any allowed primitive type (allowed: [\"object\"])",
"schema": {
"loadingURI": "http://swagger.io/v2/schema.json#",
"pointer": "/definitions/schema"
},
"instance": {
"pointer": "/definitions/required"
}
}
Can you share a small sample to reproduce it?
@paulhill nudge
Unfortunately, I can't do much with this without a sample.