flow2schema/tests/samples/either/schema.json

31 lines
824 B
JSON

{
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"either::Type": {
"type": "object",
"properties": {
"a": {"anyOf": [{"type": "string"}, {"type": "boolean"}]}
},
"required": ["a"]
},
"either::Interface": {
"type": "object",
"properties": {
"a": {
"anyOf": [
{"type": "string"},
{"type": "boolean"},
{"type": "number"}
]
}
},
"required": ["a"]
},
"either::Class": {
"type": "object",
"properties": {"a": {"type": "string"}},
"required": ["a"]
}
}
}