1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

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

This commit is contained in:
Salamandar 2023-09-24 16:08:50 +02:00
parent 03504079da
commit 19f3eb02cf

View file

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