cloudflare / chanfana

OpenAPI 3 and 3.1 schema generator and validator for Hono, itty-router and more!
https://chanfana.pages.dev
MIT License
275 stars 37 forks source link

Add zod support #72

Closed G4brym closed 1 year ago

G4brym commented 1 year ago

This pr will add support for zod while keeping support for the older type definitions like new Str({required: false})

Breaking changes:

github-actions[bot] commented 1 year ago

🧪 A prerelease is available for testing 🧪

You can install this latest build in your project with:

npm install --save https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/5668080968/npm-package-itty-router-openapi-72

Or you can immediately run this with npx:

npx https://prerelease-registry.devprod.cloudflare.dev/itty-router-openapi/runs/5668080968/npm-package-itty-router-openapi-72