blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
134 stars 17 forks source link

Improve path parameter validation #155

Closed blomqma closed 4 months ago

blomqma commented 4 months ago

This change adds support for validating path parameters and query parameters separately also on pages router using the params and ´query´ schemas similarly as with app router.

This also adds support for Zod's describe method so that the schema descriptions are included the OpenAPI spec.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 9:05am
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 9:05am