nextlove icon indicating copy to clipboard operation
nextlove copied to clipboard

fix: jsonResponse doesn't assume ZodObject

Open ethanplee14 opened this issue 1 year ago • 3 comments

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.

ethanplee14 avatar Apr 28 '23 04:04 ethanplee14