schemars/schemars/tests/expected/enum-external.json
2019-08-10 00:41:04 +01:00

49 lines
No EOL
844 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "External",
"anyOf": [
{
"enum": [
"unitOne",
"unitTwo"
]
},
{
"type": "object",
"properties": {
"stringMap": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"stringMap"
]
},
{
"type": "object",
"properties": {
"struct": {
"type": "object",
"properties": {
"bar": {
"type": "boolean"
},
"foo": {
"type": "integer"
}
},
"required": [
"bar",
"foo"
]
}
},
"required": [
"struct"
]
}
]
}