diff --git a/.github/workflows/compress-json-schemas.yml b/.github/workflows/compress-json-schemas.yml index b4ab8945..ae843a82 100644 --- a/.github/workflows/compress-json-schemas.yml +++ b/.github/workflows/compress-json-schemas.yml @@ -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" diff --git a/general/world_x_packs.json b/general/world_x_packs.json index 537c8c73..3974fffd 100644 --- a/general/world_x_packs.json +++ b/general/world_x_packs.json @@ -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"}]}}} \ No newline at end of file +{ + "$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" } + ] + } + } +}