Skip to content

Commit 6743158

Browse files
committed
Update json schema for channel/repository scheme 4.0.0
`file:///` protocol requires Package Control 4 and thus is officially supported as of channel/repository schema version 4.0.0. It throws protocol errors on Package Control 3 and thus on all older schema versions.
1 parent 5b8cd66 commit 6743158

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sublime-package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"type": "object",
131131
"markdownDescription": "A map of repository URLs and lists of packages it provides.",
132132
"patternProperties": {
133-
"^https?://.+\\.json$": {
133+
"^(?:file:///|https?://|\\./).+\\.json$": {
134134
"$ref": "sublime://packagecontrol.io/schemas/repository/4.0.0#/definitions/ResolvedPackagesList"
135135
}
136136
}
@@ -140,7 +140,7 @@
140140
"markdownDescription": "A map of repository URLs and lists of libraries it provides.",
141141
"additionalProperties": false,
142142
"patternProperties": {
143-
"^https?://.+\\.json$": {
143+
"^(?:file:///|https?://|\\./).+\\.json$": {
144144
"$ref": "sublime://packagecontrol.io/schemas/repository/4.0.0#/definitions/ResolvedLibrariesList"
145145
}
146146
}
@@ -1165,7 +1165,7 @@
11651165
"items": {
11661166
"type": "string",
11671167
"markdownDescription": "```json\n\"https://domain.com/repository.json\",\n\"./subdir/repository.json\"\n```\n\nURL or URI of a repository.\n\nRelative paths are resolved using the owning directory of this repository.",
1168-
"pattern": "^(?:https?://|\\./).+\\.json$"
1168+
"pattern": "^(?:file:///|https?://|\\./).+\\.json$"
11691169
},
11701170
"additionalItems": false,
11711171
"uniqueItems": true

0 commit comments

Comments
 (0)