Skip to content

Commit 50bcc35

Browse files
authored
fix: update default schema URI to raw.githubusercontent.com (#492)
1 parent 3b6011a commit 50bcc35

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

internal/projectconfig/configfile.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import (
1313
)
1414

1515
// Default schema URI for this config file. Useful for capable editors to provide Intellisense and validation.
16-
const DefaultSchemaURI = "https://github.com/gim-home/azldev-preview/schemas/azldev.json"
16+
//
17+
//nolint:lll // Can't really break up the long URI.
18+
const DefaultSchemaURI = "https://raw.githubusercontent.com/gim-home/azldev-preview/refs/heads/main/schemas/azldev.schema.json"
1719

1820
// Encapsulates a serialized project config file; used for serialization/deserialization.
1921
type ConfigFile struct {

scenario/clismoke_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func TestAzlDevConfigDump(t *testing.T) {
144144
}
145145

146146
config := `
147-
'$schema' = 'https://github.com/gim-home/azldev-preview/schemas/azldev.json'
147+
'$schema' = 'https://raw.githubusercontent.com/gim-home/azldev-preview/refs/heads/main/schemas/azldev.schema.json'
148148
149149
[project]
150150
description = 'simple'

scenario/testdata/imagecustomizer/e2e/azldev-config/azldev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'$schema' = 'https://github.com/gim-home/azldev-preview/schemas/azldev.json'
1+
'$schema' = 'https://raw.githubusercontent.com/gim-home/azldev-preview/refs/heads/main/schemas/azldev.schema.json'
22

33
[project]
44
description = 'azldev-project'

scenario/testdata/simple/azldev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'$schema' = 'https://github.com/gim-home/azldev-preview/schemas/azldev.json'
1+
'$schema' = 'https://raw.githubusercontent.com/gim-home/azldev-preview/refs/heads/main/schemas/azldev.schema.json'
22

33
[project]
44
description = 'simple'

0 commit comments

Comments
 (0)