40 lines
1.3 KiB
JSON
Generated
40 lines
1.3 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.world_x_packs",
|
|
"type": "array",
|
|
"title": "World X Pack Schema",
|
|
"description": "UNDOCUMENTED.",
|
|
"$comment": "UNDOCUMENTED",
|
|
"examples": [[{ "pack_id": "UUID", "version": [1, 0, 0] }]],
|
|
"items": {
|
|
"title": "Items",
|
|
"description": "A reference to a pack.",
|
|
"type": "object",
|
|
"properties": {
|
|
"pack_id": { "description": "The UUID of the pack to include.", "$ref": "#/definitions/A", "title": "Pack Id" },
|
|
"version": { "description": "The version of the pack.", "$ref": "#/definitions/B", "title": "Version" }
|
|
}
|
|
},
|
|
"definitions": {
|
|
"A": {
|
|
"description": "A valid UUID v4.",
|
|
"format": "uuid",
|
|
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
|
|
"title": "A UUID Format V4",
|
|
"type": "string",
|
|
"defaultSnippets": [{ "label": "new UUID v4", "body": "$UUID" }]
|
|
},
|
|
"B": {
|
|
"type": "array",
|
|
"title": "Version Numbering",
|
|
"description": "A version made of 3 numbers.",
|
|
"examples": [[1, 0, 0]],
|
|
"items": [
|
|
{ "type": "number", "minimum": 1, "title": "" },
|
|
{ "type": "number", "minimum": 0, "title": "Major" },
|
|
{ "type": "number", "minimum": 0, "title": "Minor" }
|
|
]
|
|
}
|
|
}
|
|
}
|