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
@nicholaschiang This is likely due to some of your definitions having a required field. If the default is set to {}, it will trigger an error for the missing required properties. We may need to either adjust Kubb's settings to be less strict or modify your Swagger/OpenAPI file accordingly.
What version of
kubb
is running?3.3.3
What kind of platform do you use?
MacOS
How does your
kubb.config.ts
config look likeSwagger/OpenAPI file?
The full openapi.json file was too large to include in the issue text. You can find it here instead.
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)No response
What steps can reproduce the bug?
kubb/zod/accountSettingsSchema.ts
Zod schema file.Here's an incomplete output of errors from TS (the complete output is too large for GitHub):
How often does this bug happen?
None
What is the expected behavior?
Kubb should provide default values that conform with the schema types or simply omit the default values entirely.
Additional information
No response
The text was updated successfully, but these errors were encountered: