rtk-query-codegen-openapi
generates incorrect (required) types for optional request body
#4824
Labels
rtk-query-codegen-openapi
generates incorrect (required) types for optional request body
#4824
Example OpenAPI schema:
According to the spec, request bodies are optional by default. But the generated types look like:
Note how
deleteOptions
is required instead of optional in theDeleteFooApiArg
type.Apologies in advance if I've misread the spec/misunderstood something here! 🙇
The text was updated successfully, but these errors were encountered: