You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use Zod schemas for simple response types (strings, null, etc.), the framework doesn't handle them properly. For example:
// This doesn't work as expected
responseSchema: {
204: z.null(), // Should represent HTTP 204 No Content
}
Results in ✖ responseSchema.204.properties: Required
The behaviour is consistent with this pattern for other scalar types. As far as I understand, an object for response is always assumed at the moment.
Eg