schema2typebox
schema2typebox copied to clipboard
Creating TypeBox code from JSON schemas
## Summary closes #39 Adds functionality to check the output file type to enable JS codegen. When `.js` or `.mjs`, will output JS ESM code, when `.cjs`, will output CommonJS...
Library version: 1.7.1 JSON schema version: draft-04 I am willing to contribute to fix the issue 💚 ## The current behavior Generates to typescript. ## The expected behavior Identify the...
Library version: 1.7.1 JSON schema version: draft-04 I am willing to contribute to fix the issue 💚 ## The current behavior It currently doesn't generate JS at all. ## The...
Library version: 1.7.1 JSON schema version: draft-04 ## The current behavior Fails to parse with `Unsupported schema`. ## The expected behavior Parsing correctly. What I would really like is a...
## Summary Handle JSON Schema patternProperties[^1] to be able to create a type of `Record`. [^1]: https://json-schema.org/understanding-json-schema/reference/object#patternProperties
Previously, if you have any schema that was recursively defined (either simple recursion or mutually recursive), then the code would get stuck in an infinite loop until a `Maximum call...
JSON allows for infinite precision, so it's valid to represent uint64 with the following ```json { "maximum": 18446744073709551615, "minimum": 0, "type": "integer" } ``` Note: `integer` here is used instead...
## Note This PR is based on #54. It will have to be rebased once #54 is merged ## Summary This PR allows glob inputs so that you can combine...