Skip to content

Commit 7628d71

Browse files
committed
fix template pool autocompletions
1 parent e3773f7 commit 7628d71

6 files changed

Lines changed: 33 additions & 16 deletions

File tree

packages/minecraftBedrock/schema/templatePool/v1.21.100/elements/_main.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"type": "object",
4-
"anyOf": [
4+
"allOf": [
55
{
66
"properties": {
77
"element_type": {
88
"title": "Element Type",
99
"description": "The type of element.",
10-
"type": "string"
10+
"type": "string",
11+
"enum": [
12+
"minecraft:single_pool_element",
13+
"minecraft:empty_pool_element"
14+
]
1115
}
1216
},
1317
"required": [
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"type": "object",
4-
"properties": {},
5-
"additionalProperties": false
4+
"properties": {}
65
}

packages/minecraftBedrock/schema/templatePool/v1.21.20/elements/_main.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"element_type": {
88
"title": "Element Type",
99
"description": "The type of element.",
10-
"type": "string"
10+
"type": "string",
11+
"enum": [
12+
"minecraft:single_pool_element"
13+
]
1114
}
1215
},
1316
"required": [

packages/minecraftBedrock/schema/templatePool/v1.26.20/elements/_main.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
"element_type": {
88
"title": "Element Type",
99
"description": "The type of element.",
10-
"type": "string"
10+
"type": "string",
11+
"enum": [
12+
"minecraft:empty_pool_element",
13+
"minecraft:feature_pool_element",
14+
"minecraft:single_pool_element"
15+
]
1116
}
1217
},
13-
"required": ["element_type"]
18+
"required": [
19+
"element_type"
20+
]
1421
},
1522
{
1623
"if": {
@@ -19,7 +26,9 @@
1926
"const": "minecraft:single_pool_element"
2027
}
2128
},
22-
"required": ["element_type"]
29+
"required": [
30+
"element_type"
31+
]
2332
},
2433
"then": {
2534
"$ref": "./single_pool_element.json"
@@ -32,7 +41,9 @@
3241
"const": "minecraft:empty_pool_element"
3342
}
3443
},
35-
"required": ["element_type"]
44+
"required": [
45+
"element_type"
46+
]
3647
},
3748
"then": {
3849
"$ref": "./empty_pool_element.json"
@@ -45,11 +56,13 @@
4556
"const": "minecraft:feature_pool_element"
4657
}
4758
},
48-
"required": ["element_type"]
59+
"required": [
60+
"element_type"
61+
]
4962
},
5063
"then": {
5164
"$ref": "./feature_pool_element.json"
5265
}
5366
}
5467
]
55-
}
68+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"type": "object",
4-
"properties": {},
5-
"additionalProperties": false
4+
"properties": {}
65
}

packages/minecraftBedrock/schema/templatePool/v1.26.20/elements/feature_pool_element.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@
77
"description": "THe identifier of the feature to place.",
88
"$ref": "../../../general/reference/identifiers.json#/definitions/feature_identifiers"
99
}
10-
},
11-
"additionalProperties": false
12-
}
10+
}
11+
}

0 commit comments

Comments
 (0)