Updated Manifest

This commit is contained in:
DaanV2
2021-05-16 13:39:02 +02:00
parent f9311b8fb0
commit 4339ddef1d
4 changed files with 39 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
"object_check": { "object_check": {
"type": "object", "type": "object",
"dependencies": { "dependencies": {
"type": ["title", "description"] "type": ["title"]
}, },
"additionalProperties": { "additionalProperties": {
"anyOf": [ "anyOf": [

View File

@@ -1,5 +1,5 @@
{ {
"json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": ".vscode/schema-validation.json" }], "json.schemas": [{ "fileMatch": ["source/**/*.json", "source/*.json"], "url": "./.vscode/schema-validation.json" }],
"editor.formatOnSave": true, "editor.formatOnSave": true,
"[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },

View File

@@ -27,7 +27,7 @@
"type": "string", "type": "string",
"$ref": "#/definitions/uuidv4", "$ref": "#/definitions/uuidv4",
"description": "This is a special type of identifier that uniquely identifies this pack from any other pack. UUIDs are written in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each x is a hexadecimal value (0-9 or a-f). We recommend using an online service to generate this and guarantee their uniqueness (just bing UUID Generator to find some)", "description": "This is a special type of identifier that uniquely identifies this pack from any other pack. UUIDs are written in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where each x is a hexadecimal value (0-9 or a-f). We recommend using an online service to generate this and guarantee their uniqueness (just bing UUID Generator to find some)",
"title": "Uuid" "title": "UUID"
}, },
"version": { "$ref": "#/definitions/version", "description": "This is the version of your pack in the format [majorVersion, minorVersion, revision].", "title": "Version" }, "version": { "$ref": "#/definitions/version", "description": "This is the version of your pack in the format [majorVersion, minorVersion, revision].", "title": "Version" },
"min_engine_version": { "min_engine_version": {
@@ -48,6 +48,8 @@
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"description": "TODO description: modules",
"title": "Modules",
"required": ["type", "uuid", "version"], "required": ["type", "uuid", "version"],
"properties": { "properties": {
"type": { "type": {
@@ -64,16 +66,14 @@
"uuid": { "uuid": {
"$ref": "#/definitions/uuidv4", "$ref": "#/definitions/uuidv4",
"description": "This is a unique identifier for the module in the same format as the pack's UUID in the header. This should be different from the pack's UUID, and different for every module", "description": "This is a unique identifier for the module in the same format as the pack's UUID in the header. This should be different from the pack's UUID, and different for every module",
"title": "Uuid" "title": "UUID"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "#/definitions/version",
"description": "This is the version of the module in the same format as the pack's version in the header. This can be used to further identify changes in your pack", "description": "This is the version of the module in the same format as the pack's version in the header. This can be used to further identify changes in your pack",
"title": "Version" "title": "Version"
} }
}, }
"description": "TODO description: modules",
"title": "Modules"
}, },
"description": "TODO description: modules" "description": "TODO description: modules"
}, },
@@ -88,7 +88,7 @@
"type": "string", "type": "string",
"$ref": "#/definitions/uuidv4", "$ref": "#/definitions/uuidv4",
"description": "This is the unique identifier of the pack that this pack depends on. It needs to be the exact same UUID that the pack has defined in the header section of it's manifest file", "description": "This is the unique identifier of the pack that this pack depends on. It needs to be the exact same UUID that the pack has defined in the header section of it's manifest file",
"title": "Uuid" "title": "UUID"
}, },
"version": { "version": {
"$ref": "#/definitions/version", "$ref": "#/definitions/version",
@@ -115,7 +115,20 @@
"title": "Capabilities" "title": "Capabilities"
}, },
"metadata": { "metadata": {
"authors": { "type": "string", "description": "Name of the author(s) of the pack", "title": "Authors" }, "authors": {
"title": "Authors",
"oneOf": [
{
"description": "Name of the author(s) of the pack",
"type": "array",
"items": { "type": "string", "title": "Name", "description": "Name of the author of the pack" }
},
{
"description": "Name of the author of the pack",
"type": "string"
}
]
},
"license": { "type": "string", "description": "The license of the pack", "title": "License" }, "license": { "type": "string", "description": "The license of the pack", "title": "License" },
"url": { "type": "string", "description": "The home website of your pack", "title": "Url" }, "url": { "type": "string", "description": "The home website of your pack", "title": "Url" },
"description": "TODO description: metadata", "description": "TODO description: metadata",

View File

@@ -8,7 +8,7 @@
"definitions": { "definitions": {
"uuidv4": { "uuidv4": {
"type": "string", "type": "string",
"title": "A UUID V4", "title": "An UUID V4",
"description": "A valid uuid v4", "description": "A valid uuid v4",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"format": "uuid" "format": "uuid"
@@ -17,12 +17,13 @@
}, },
"properties": { "properties": {
"format_version": { "format_version": {
"title": "Format Version",
"type": "number", "type": "number",
"description": "This defines the current version of the manifest. Don't change this unless you have a good reason to", "description": "This defines the current version of the manifest. Don't change this unless you have a good reason to"
"title": "Format Version"
}, },
"capabilities": { "capabilities": {
"type": "array", "type": "array",
"title": "Capabilities",
"description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.", "description": "These are the different features that the pack makes use of that aren't necessarily enabled by default.",
"properties": { "properties": {
"experimental_custom_ui": { "experimental_custom_ui": {
@@ -32,8 +33,7 @@
}, },
"chemistry": { "type": "boolean", "description": "Allows the pack to add, change or replace Chemistry functionality", "title": "Chemistry" }, "chemistry": { "type": "boolean", "description": "Allows the pack to add, change or replace Chemistry functionality", "title": "Chemistry" },
"raytraced": { "type": "boolean", "description": "TODO", "title": "Raytraced" } "raytraced": { "type": "boolean", "description": "TODO", "title": "Raytraced" }
}, }
"title": "Capabilities"
}, },
"dependencies": { "dependencies": {
"type": "array", "type": "array",
@@ -136,9 +136,18 @@
"title": "Metadata", "title": "Metadata",
"properties": { "properties": {
"authors": { "authors": {
"type": "array", "title": "Authors",
"description": "Name of the author(s) of the pack", "oneOf": [
"items": { "type": "string", "title": "Name", "description": "Name of the author of the pack" } {
"description": "Name of the author(s) of the pack",
"type": "array",
"items": { "type": "string", "title": "Name", "description": "Name of the author of the pack" }
},
{
"description": "Name of the author of the pack",
"type": "string"
}
]
}, },
"license": { "type": "string", "title": "License", "description": "The license of the pack" }, "license": { "type": "string", "title": "License", "description": "The license of the pack" },
"url": { "type": "string", "format": "uri", "title": "Url", "description": "The home website of your pack" } "url": { "type": "string", "format": "uri", "title": "Url", "description": "The home website of your pack" }