schemars/schemars/tests/expected/enum-internal.json
2019-09-08 14:20:57 +01:00

74 lines
No EOL
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Internal",
"anyOf": [
{
"type": "object",
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitOne"
]
}
},
"required": [
"typeProperty"
]
},
{
"type": "object",
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"StringMap"
]
}
},
"required": [
"typeProperty"
],
"additionalProperties": {
"type": "string"
}
},
{
"type": "object",
"properties": {
"bar": {
"type": "boolean"
},
"foo": {
"type": "integer",
"format": "int32"
},
"typeProperty": {
"type": "string",
"enum": [
"Struct"
]
}
},
"required": [
"bar",
"foo",
"typeProperty"
]
},
{
"type": "object",
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitTwo"
]
}
},
"required": [
"typeProperty"
]
}
]
}