Skip to content

fix: support JSON Schema tuple items in code generation - #108

Merged
jurerotar merged 2 commits into
mainfrom
fix/json-schema-tuple-items
Nov 5, 2026
Merged

jurerotar merged 2 commits into
mainfrom
fix/json-schema-tuple-items

Conversation

@jurerotar

Copy link
Copy Markdown
Collaborator

Fix generation of JSON Schema tuples expressed as array-valued items. These schemas previously caused the native generator to fail with Schema must be an object, including nested ACL rule tuples in even-tiny.

Both generators now emit Zod tuples with positional validation, optional positions, additionalItems handling, and tuple-compatible length checks.

Validation: eight focused schema/runtime tests, typecheck, and lint pass locally. The full even-tiny spec generates 1,414 files with the TypeScript generator. Added a native renderer parity regression; native compilation and parity are validated in CI.

@jurerotar
jurerotar merged commit 8a8e287 into main Nov 5, 2026
6 checks passed
@jurerotar
jurerotar deleted the fix/json-schema-tuple-items branch November 5, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant