nextlove
nextlove copied to clipboard
fix: jsonResponse doesn't assume ZodObject
Close #60
Checks if json response is a zod json object schema or not by checking the zod schema definition typeName. It's a bit of a weird feature that I found after doing some digging here https://github.com/colinhacks/zod/pull/523
I also haven't tested this yet. If someone can explain how to do that, would appreciate it.