- Which JSON Schema draft?
- Draft-07 is fully supported (the most common). Draft 2019-09 and 2020-12 features (unevaluatedProperties, dynamic refs) have partial support.
- What about $ref resolution?
- Local $refs are resolved (#/definitions/Foo). External $refs (http://example.com/schema.json) aren't fetched — inline them before conversion.
- Does it generate runtime validators?
- No — types only. For runtime validation pair with Ajv (which uses the same JSON Schema directly) or use the json-to-zod tool for a validator + types in one.
- What about unions with oneOf/anyOf?
- oneOf → TypeScript union. anyOf → intersection when possible, union otherwise. discriminator keys produce type guards for clean narrowing.