StefanTerdell / json-schema-to-zod

ISC License
322 stars 46 forks source link

Supported JsonSchema Versions #63

Closed ballcoach12 closed 11 months ago

ballcoach12 commented 1 year ago

I have a JSONSchema4 object that I need to convert to Zod. The readme.md says draft JSONSchema4+ is supported, but when I try to convert my schema, I get the following error:

Argument of type 'JSONSchema4' is not assignable to parameter of type 'JSONSchema7'.

Indeed, as I see in the code only a JSONSchema7 type is allowed. Is there a way to convert a JSONSchema4 instance?