Validators using zod

This commit is contained in:
2026-10-25 12:41:46 -03:00
parent 31ae2973d7
commit 4fad43d9cc
24 changed files with 1242 additions and 1788 deletions
+1 -1
View File
@@ -34,8 +34,8 @@ Deno.test("a model gets its parent's display transform for each place it doesn't
assertEquals(models[1].display, { gui: { scale: [2, 2, 2] }, ground: { scale: [0.25, 0.25, 0.25] } });
assertEquals(validate_model({ id: "a:base", display: models[1].display }), []);
assertEquals(validate_model({ id: "a:base", display: { head: {}, gui: { scale: 2 } } }), [
'display: "head" isn\'t one of gui, firstperson_righthand, ground, fixed',
"display.gui.scale must be [x, y, z]",
'display can\'t have "head"',
]);
});