From 75b45c87c8e51c590054303fafa2c5929d04284e Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sun, 15 Oct 2023 20:48:29 +0200 Subject: [PATCH] Swap order of tag- and branch based release templates in JSON schema This commit swaps order, so linter complains about missing "tags" key instead of "branches". The former one is what we prefer. --- sublime-package.json | 120 +++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/sublime-package.json b/sublime-package.json index 7f893279..a9081a14 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -657,49 +657,49 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ "base", - "branch", + "tags", "platforms", "sublime_text" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"]\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"]\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ "base", - "tags", + "branch", "platforms", "sublime_text" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"]\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"]\n}" } ] } @@ -869,45 +869,45 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ - "branch", + "tags", "sublime_text" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ - "tags", + "branch", "sublime_text" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] } @@ -917,47 +917,47 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ "base", - "branch", + "tags", "sublime_text" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "dependencies": { "$ref": "#/definitions/ReleaseValues/dependencies" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" } }, "required": [ "base", - "tags", + "branch", "sublime_text" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] } @@ -1281,11 +1281,11 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, @@ -1293,22 +1293,22 @@ }, "required": [ "base", - "branch" + "tags" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\"]\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\"]\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, @@ -1316,12 +1316,12 @@ }, "required": [ "base", - "tags" + "branch" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\"]\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\"]\n}" } ] } @@ -1493,45 +1493,45 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, "python_versions": { "$ref": "#/definitions/ReleaseValues/python_versions" } }, "required": [ - "branch" + "tags" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, "python_versions": { "$ref": "#/definitions/ReleaseValues/python_versions" } }, "required": [ - "tags" + "branch" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] } @@ -1541,11 +1541,11 @@ "oneOf": [ { "type": "object", - "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, + "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, @@ -1553,22 +1553,22 @@ }, "required": [ "base", - "branch" + "tags" ], "defaultSnippets": [ { - "label": "branch based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "tag based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] }, { "type": "object", - "markdownDescription": "A release template, which uses given `tags` specification to collect available releases from `base` or package's `details` url.", + "markdownDescription": "A release template, which uses given `branch` specification to collect available releases from `base` or package's `details` url.", "additionalProperties": false, "properties": { "base": { "$ref": "#/definitions/ReleaseValues/base" }, - "tags": { "$ref": "#/definitions/ReleaseValues/tags" }, + "branch": { "$ref": "#/definitions/ReleaseValues/branch" }, "libraries": { "$ref": "#/definitions/ReleaseValues/libraries" }, "sublime_text": { "$ref": "#/definitions/ReleaseValues/sublime_text" }, "platforms": { "$ref": "#/definitions/ReleaseValues/platforms" }, @@ -1576,12 +1576,12 @@ }, "required": [ "base", - "tags" + "branch" ], "defaultSnippets": [ { - "label": "tag based release template", - "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" + "label": "branch based release template", + "bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"sublime_text\": \"${3:*}\"${4:,\n\t\"platforms\": [\"${5:*}\"]}\n}" } ] }