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:
parent
03504079da
commit
19f3eb02cf
1 changed files with 13 additions and 6 deletions
|
@ -7,14 +7,21 @@
|
|||
"type": "object",
|
||||
"$defs": {
|
||||
"translated_string": {
|
||||
"type": "object",
|
||||
"required": ["en"],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z]{2}$": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["en"],
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z]{2}$": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"byte_size": {
|
||||
"type": "string",
|
||||
|
|
Loading…
Add table
Reference in a new issue