vcpe/srcs/libs/docs/json_schema/schema/test-anyof.json

51 lines
1.2 KiB
JSON
Raw Normal View History

{
"acceptstringandinteger": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"anyOf": [
{
"properties": {
"id": {
"type": "integer"
}
}
},
{
"properties": {
"id": {
"type": "string"
}
}
}
],
"required": [
"id"
]
},
"inarray": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"properties": {
"anna": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"id"
]
}
]
}
}
}
},
"anyOfSchemaError": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"anyOf": [
"type"
]
}
}