Skip to content

TError always unknown #147

Closed
Closed
@Alexandre-Cornillon

Description

@Alexandre-Cornillon

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.

Screenshots
Screenshot 2024-09-05 at 17 45 16

  • OS: macOS
  • Version: Sonoma 14.5

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions