schemas: Allow translated_string to be a simple string, the underlying code supports it.
This commit is contained in:
parent
03504079da
commit
19f3eb02cf
@ -7,14 +7,21 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"$defs": {
|
"$defs": {
|
||||||
"translated_string": {
|
"translated_string": {
|
||||||
"type": "object",
|
"anyOf": [
|
||||||
"required": ["en"],
|
{
|
||||||
"additionalProperties": false,
|
"type": "object",
|
||||||
"patternProperties": {
|
"required": ["en"],
|
||||||
"^[a-z]{2}$": {
|
"additionalProperties": false,
|
||||||
|
"patternProperties": {
|
||||||
|
"^[a-z]{2}$": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
},
|
},
|
||||||
"byte_size": {
|
"byte_size": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
Loading…
Reference in New Issue
Block a user