Skip to content
Snippets Groups Projects
Commit 266dcb32 authored by Semyon Krestyaninov's avatar Semyon Krestyaninov :dog2: Committed by Pavel Antonov
Browse files

Обновлена JSON-схема валидации коллекции: добавлена валидация переводов полей

parent 4b1379a8
Branches
Tags
No related merge requests found
......@@ -1325,30 +1325,6 @@
]
}
},
"anyOf": [
{
"$ref": "#/$defs/field",
"properties": {
"metadata": {
"type": [
"object",
"null"
],
"properties": {
"collection_id": {
"type": "string"
},
"collection_name": {
"type": "string"
},
"collection_hidden": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"properties": {
"id": {
......@@ -1407,6 +1383,23 @@
"revision_ttl": {
"description": "Ревизии старше указанного времени хранения будут автоматически удалятся. 0, пусто - без ограничений",
"type": "integer"
},
"translations": {
"type": "object",
"description": "Переводы полей коллекции на различные языки",
"patternProperties": {
"^[\\w-]+$": {
"type": "object",
"description": "Язык, для которого предназначены переводы",
"properties": {
"name": {
"type": "string",
"description": "Название коллекции"
}
}
}
},
"additionalProperties": false
}
},
"required": [
......@@ -1416,5 +1409,3 @@
],
"additionalProperties": false
}
\ No newline at end of file
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment