UNPKG

schema2typebox

Version:

Creates typebox code from JSON schemas

29 lines (16 loc) 849 B
# 1.7.5 - parse {} as Type.Unknown() [src](https://github.com/xddq/schema2typebox/pull/51) # 1.7.4 - support unions containing objects and/or arrays [src](https://github.com/xddq/schema2typebox/pull/48) # 1.7.3 - always quote properties to avoid futher issues with regex missing out on uncommon naming schemes. [src](https://github.com/xddq/schema2typebox/pull/47) # 1.7.2 - allow array schemas that don't specify a type for the array items. [src](https://github.com/xddq/schema2typebox/pull/42) # 1.7.1 - fix typebox code generation for JSON schemas which use property names like (without the quotes) "@test", "1", or "some with spaces". [src](https://github.com/xddq/schema2typebox/pull/36) # 1.7.0 - ensure generation of $id as schema option in resulting typebox code (#33) [src](https://github.com/xddq/schema2typebox/pull/33)