nextlove icon indicating copy to clipboard operation
nextlove copied to clipboard

Add command to generate Zod schemas for routes

Open codetheweb opened this issue 1 year ago • 0 comments

E.x. nextlove generate-route-schemas should output

import {z} from "zod"

const routes = {
  "/hello/world": {
    queryParams: z.object({device_id: z.string()})
    jsonResponse: z.object({message: z.string()})
  }
}

codetheweb avatar Jul 12 '23 22:07 codetheweb