Skip to content

Commit

Permalink
Use correct branch name in json schema ids (microsoft#1402)
Browse files Browse the repository at this point in the history
The `$id` fields in all JSON schemas were wrongly referring to a
non-existent `master` branch. This isn't too bad because GitHub has some
magic to fall back to the default branch when non-existent `master`
branches are requested, but it is still incorrect. Fix it.
  • Loading branch information
fahrradflucht authored May 6, 2024
1 parent 7a32148 commit 6081c15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/artifact.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/artifact.schema.json",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/artifact.schema.json",
"type": "object",
"properties": {
"id": {
Expand Down
2 changes: 1 addition & 1 deletion docs/vcpkg-configuration.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg-configuration.schema.json",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-configuration.schema.json",
"type": "object",
"properties": {
"default-registry": {
Expand Down
2 changes: 1 addition & 1 deletion docs/vcpkg-schema-definitions.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg-schema-definitions.schema.json",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg-schema-definitions.schema.json",
"definitions": {
"artifact-references": {
"description": "A key/value pair of artifact name to selected artifact version.",
Expand Down
2 changes: 1 addition & 1 deletion docs/vcpkg.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json",
"$id": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"type": "object",
"allOf": [
{
Expand Down

0 comments on commit 6081c15

Please sign in to comment.