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
The error indicates that fields like id, createdAt, updatedAt, createdBy, and updatedBy are "required" and expected to be of type never, but they are undefined in the input object. This seems contradictory—how can a field be required yet not allowed to exist?
What version of
kubb
is running?3.6.1
What kind of platform do you use?
Bun
How does your
kubb.config.ts
config look likeSwagger/OpenAPI file?
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)What steps can reproduce the bug?
The following schemas are generated.
and
Validating as follows:
Gives this error
The error indicates that fields like id, createdAt, updatedAt, createdBy, and updatedBy are "required" and expected to be of type never, but they are undefined in the input object. This seems contradictory—how can a field be required yet not allowed to exist?
Maybe something like the following would work.
How often does this bug happen?
Every time
What is the expected behavior?
No validation error.
Additional information
No response
The text was updated successfully, but these errors were encountered: