This commit is contained in:
DaanV2
2025-06-02 22:10:28 +02:00
parent b3b377b2ef
commit b7f0501fb1
2 changed files with 40 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ jobs:
format: "YYYY-MM-DD"
- name: 💾 Compress Json
uses: DaanV2/Json-Schema-Action-Compression@v3.4
uses: DaanV2/Json-Schema-Action-Compression@v3.5
with:
specificationFile: "source/compress_specification.json"

View File

@@ -1 +1,39 @@
{"$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"}]}}}
{
"$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" }
]
}
}
}