schemas: Allow translated_string to be a simple string, the underlying code supports it.

This commit is contained in:
Félix Piédallu 2023-09-24 16:08:50 +02:00
parent 03504079da
commit 19f3eb02cf

View File

@ -7,6 +7,8 @@
"type": "object",
"$defs": {
"translated_string": {
"anyOf": [
{
"type": "object",
"required": ["en"],
"additionalProperties": false,
@ -16,6 +18,11 @@
}
}
},
{
"type": "string"
}
]
},
"byte_size": {
"type": "string",
"pattern": "^[0-9]*(\\.[0-9]*)?[kKmMgG]$"