{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "one_of_fail",
"properties": {
"hosts": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
}
}
}
Fails with:
property_type = property_["type"]
KeyError: 'type'
If we add type to it, it still fails, as it expects $ref in the oneOf items.
{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "one_of_fail", "properties": { "hosts": { "oneOf": [ { "type": "array", "items": { "type": "string" } }, { "type": "string" } ] } } }Fails with:
If we add type to it, it still fails, as it expects
$refin the oneOf items.