nextlove icon indicating copy to clipboard operation
nextlove copied to clipboard

OpenAPI generation assumes `jsonResponse` is a `z.object()`

Open codetheweb opened this issue 1 year ago • 0 comments

withRouteSpec({
  methods: ["GET"],
  jsonResponse: z.array(z.number())
} as const)

doesn't work:

Screenshot 2023-04-06 at 4 42 26 PM

codetheweb avatar Apr 06 '23 23:04 codetheweb