Skip to content

Commit

Permalink
Swap order of tag- and branch based release templates in JSON schema
Browse files Browse the repository at this point in the history
This commit swaps order, so linter complains about missing "tags" key instead
of "branches". The former one is what we prefer.
  • Loading branch information
deathaxe committed Oct 15, 2023
1 parent 870647b commit 75b45c8
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
]
}
Expand Down Expand Up @@ -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}"
}
]
}
Expand All @@ -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}"
}
]
}
Expand Down Expand Up @@ -1281,47 +1281,47 @@
"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" },
"python_versions": { "$ref": "#/definitions/ReleaseValues/python_versions" }
},
"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" },
"python_versions": { "$ref": "#/definitions/ReleaseValues/python_versions" }
},
"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}"
}
]
}
Expand Down Expand Up @@ -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}"
}
]
}
Expand All @@ -1541,47 +1541,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" },
"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": [
"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" },
"python_versions": { "$ref": "#/definitions/ReleaseValues/python_versions" }
},
"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}"
}
]
}
Expand Down

0 comments on commit 75b45c8

Please sign in to comment.