smoosic
Version:
<sub>[Github site](https://github.com/Smoosic/smoosic) | [source documentation](https://smoosic.github.io/Smoosic/release/docs/modules.html) | [change notes](https://aarondavidnewman.github.io/Smoosic/changes.html) | [application](https://smoosic.github.i
46 lines • 792 B
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"parentObj"
],
"properties": {
"parentObj": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/type1"
},
{
"$ref": "#/definitions/type2"
}
]
}
}
},
"definitions": {
"type1": {
"type": "object",
"properties": {
"dog": {
"type": "string"
}
},
"required": [
"dog"
]
},
"type2": {
"type": "object",
"properties": {
"cat": {
"type": "string"
}
},
"required": [
"cat"
]
}
}
}