Full-stack Deno Fresh meta-framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
52
stars
2
forks
source link
[zod] allow loading serialized zod schemas (e.g. from DB) #79
Closed
miguelrk closed 7 months ago
Add following utility function using
json-schema-to-zod
tonetzo/core/utils/database.utils.ts
:So that it can be used as follows e.g. for a user schema:
Alternativeley, we could also use
ajv-ts
(see issue 31 of @vitalics/ajv-ts)