Hey, been using lua-schema in a small config validator and it's been solid. One thing I couldn't figure out: is there a way to validate fixed-position tuples? Like {string, number, boolean} where each position has its own type.
In Zod you'd do z.tuple([z.string(), z.number(), z.boolean()]). Wondering if there's an equivalent or if I should just use a table schema with numeric keys.
Hey, been using lua-schema in a small config validator and it's been solid. One thing I couldn't figure out: is there a way to validate fixed-position tuples? Like
{string, number, boolean}where each position has its own type.In Zod you'd do
z.tuple([z.string(), z.number(), z.boolean()]). Wondering if there's an equivalent or if I should just use a table schema with numeric keys.