Follow @ResourceRef in the export closure and schema

This commit is contained in:
piexel committed 2026-11-06 07:16:27 +01:00
1 parent 4acc1ee2b9
commit 6e1a206013
3 files changed
+7 -7

No files matched your search

@@ -56,7 +56,7 @@ public class PackModuleResourceKindTest {
public final class Keep {
@Desc("Towers on the walls") @MinNumber(1)
private int towers = 4;
@Ref(kind = Keep.class)
@ResourceRef(Keep.class)
private String next = "";
public int towers() { return towers; }
@@ -216,7 +216,7 @@ public class SchemaBuilderParityTest {
assertEquals("@IrisStructureRef completes the keys of Iris's structure model",
"#/definitions/erz" + StructureResources.STRUCTURES.folder(),
properties.getJSONObject("structures").getJSONObject("items").getString("$ref"));
assertEquals("@Ref(kind = PackBiome.class) completes the pack's biome keys", "#/definitions/erzbiomes",
assertEquals("@ResourceRef(PackBiome.class) completes the pack's biome keys", "#/definitions/erzbiomes",
properties.getJSONObject("caveBiomes").getJSONObject("items").getString("$ref"));
assertFalse(properties.has("scale"));
}