Skip to content

Commit 6b1f825

Browse files
Update uplugin schema from draft-04 to draft-07 (SchemaStore#5112)
* Update uplugin schema from draft-04 to draft-07 * Add GameFeature specific property * Add simple URL check pattern * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 83e4a96 commit 6b1f825

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/schemas/json/uplugin.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/uplugin.json",
34
"additionalProperties": false,
45
"definitions": {
56
"BuildConfiguration": {
@@ -225,11 +226,21 @@
225226
}
226227
},
227228
"required": ["Enabled", "Name"]
229+
},
230+
"URL": {
231+
"type": "string",
232+
"format": "uri",
233+
"pattern": "^https?://"
228234
}
229235
},
230236
"description": "Descriptor for plugins. Contains all the information contained within a `.uplugin` file.",
231-
"id": "https://json.schemastore.org/uplugin.json",
232237
"properties": {
238+
"BuiltInInitialFeatureState": {
239+
"description": "Determine the initial feature state for a built-in plugin",
240+
"type": "string",
241+
"enum": ["Installed", "Registered", "Loaded", "Active"],
242+
"default": "Active"
243+
},
233244
"CanContainContent": {
234245
"description": "Can this plugin contain content?",
235246
"type": "boolean",
@@ -290,16 +301,16 @@
290301
"type": "string"
291302
},
292303
"CreatedByURL": {
293-
"description": "Hyperlink URL string for the company or individual who created this plugin. This is optional.",
294-
"type": "string"
304+
"$ref": "#/definitions/URL",
305+
"description": "Hyperlink URL string for the company or individual who created this plugin. This is optional."
295306
},
296307
"Description": {
297308
"description": "Description of the plugin",
298309
"type": "string"
299310
},
300311
"DocsURL": {
301-
"description": "Documentation URL string.",
302-
"type": "string"
312+
"$ref": "#/definitions/URL",
313+
"description": "Documentation URL string."
303314
},
304315
"EditorCustomVirtualPath": {
305316
"description": "Optional custom virtual path to display in editor to better organize.",

0 commit comments

Comments
 (0)