Add support for adding module dependencies (#118)

* Add support for adding module dependencies

* auto: Generated Json Schemas

Co-authored-by: Blockception Bot <Bot@Blockception.com>
This commit is contained in:
Piotr Brzozowski
2022-10-02 00:33:58 +02:00
committed by GitHub
parent 79b1a9fdd0
commit 8b599b4562
2 changed files with 47 additions and 17 deletions

2
general/manifest.json generated

File diff suppressed because one or more lines are too long

View File

@@ -46,8 +46,10 @@
"dependencies": { "dependencies": {
"type": "array", "type": "array",
"title": "Dependencies", "title": "Dependencies",
"description": "Section containing definitions for any other packs that are required in order for this manifest.json file to work.", "description": "Section containing definitions for any other packs or modules that are required in order for this manifest.json file to work.",
"items": { "items": {
"oneOf": [
{
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"title": "Dependency", "title": "Dependency",
@@ -65,6 +67,34 @@
"title": "Version" "title": "Version"
} }
} }
},
{
"additionalProperties": false,
"type": "object",
"title": "Dependency",
"description": "Section containing definitions for any other packs or modules that are required in order for this manifest.json file to work.",
"properties": {
"module_name": {
"type": "string",
"description": "This is the name of the module that this pack depends on.",
"title": "Module Name",
"enum": [
"mojang-gamtest",
"mojang-minecraft",
"mojang-minecraft-server-admin",
"mojang-minecraft-ui",
"mojang-net"
]
},
"version": {
"type": "string",
"description": "This is the specific version of the module that your pack depends on.",
"title": "Version",
"default": "1.0.0-beta"
}
}
}
]
} }
}, },
"header": { "header": {