Closed
Description
Describe the bug
Hello,
When we use the TError
type from codegen, the type is always unknown
.
How to have the payload or message of all the 400s and 500s errors typed ?
Thanks
To Reproduce
Steps to reproduce the behavior:
npx --package @7nohe/openapi-react-query-codegen openapi-rq -i https://petstore.swagger.io/v2/swagger.json -o src/generated
OpenAPI spec file
https://petstore.swagger.io/v2/swagger.json
Expected behavior
I need to have the content or message of all the 400s and 500s errors.
- OS: macOS
- Version: Sonoma 14.5
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels