Fix schemas for correct creation from empty DB

This commit is contained in:
Petr Kalis 2020-10-02 11:04:29 +02:00
parent 89eb5e1347
commit ef240a3879
3 changed files with 17 additions and 13 deletions

View file

@ -1,14 +1,13 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "avalon-core:config-1.1",
"title": "pype:config-1.1",
"description": "A project configuration.",
"type": "object",
"additionalProperties": false,
"required": [
"template",
"tasks",
"apps"
],
@ -29,13 +28,18 @@
},
"tasks": {
"type": "object",
"properties": {
"short_name": {"type": "string"},
"icon": {"type": "string"},
"group": {"type": "string"},
"label": {"type": "string"}
},
"required": ["short_name"]
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"icon": {"type": "string"},
"group": {"type": "string"},
"label": {"type": "string"}
},
"required": [
"short_name"
]
}
},
"apps": {
"type": "array",

View file

@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "avalon-core:config-1.1",
"title": "pype:config-1.1",
"description": "A project configuration.",
"type": "object",

View file

@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "avalon-core:project-2.1",
"title": "pype:project-2.1",
"description": "A unit of data",
"type": "object",
@ -20,7 +20,7 @@
"schema": {
"description": "Schema identifier for payload",
"type": "string",
"enum": ["avalon-core:project-2.1"],
"enum": ["avalon-core:project-2.1", "pype:project-2.1"],
"example": "avalon-core:project-2.1"
},
"type": {
@ -52,7 +52,7 @@
"type": "object",
"description": "Document metadata",
"example": {
"schema": "avalon-core:config-1.1",
"schema": "pype:config-1.1",
"apps": [
{
"name": "maya2016",