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?
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:
Indeed, as I see in the code only a
JSONSchema7
type is allowed. Is there a way to convert aJSONSchema4
instance?