I am using the above code for creating JSON schema for zod schema where all fields are optional. But this code is not working anymore. I tried earlier versions of zod-to-josn-schema, but it's still not working
I found the issue, it seems to be with the zod itself. when we use .and in zod schema it makes fields as required, but when we use .augment it works as expected
I am using the above code for creating JSON schema for zod schema where all fields are optional. But this code is not working anymore. I tried earlier versions of zod-to-josn-schema, but it's still not working