51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
|
{
|
||
|
"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"
|
||
|
]
|
||
|
}
|
||
|
}
|