astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)
openapi-zod-client.vercel.app
717 stars 80 forks source link

Strict validation of objects #263

Closed iceydee closed 7 months ago

iceydee commented 7 months ago

Added an option to allow strict validation of objects (by adding .strict() to z.objects). This will make zod throw unknown key error whenever unexpected data is encountered.

vercel[bot] commented 7 months ago

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

Name Status Preview Comments Updated (UTC)
openapi-zod-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2024 8:45am