Open kylekirkby opened 1 week ago
I'm able to successfully construct the regexp from the JSON schema produced from your example, so I need some help reproducing this @kylekirkby
Could you check the Swagger UI code to see what specifically produces the error?
Added some tests for it here btw https://github.com/StefanTerdell/zod-to-json-schema/blob/master/test/issues.test.ts#L48
We've got a custom URL schema that is failing to be correctly translated to a
pattern
property.When loading Swagger UI we're getting
unknown escape sequence
.It looks like we need to double escape backslashes in JSON?
Cheers!