-
-
Notifications
You must be signed in to change notification settings - Fork 586
Open
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library
Description
openapi-typescript version
7.9.1
Node.js version
23.11.0
OS + version
macOS 15.6
Description
shouldThrowError does not seem to throw an error. Even with retry option set to false.
Also it looks like query options should be a fourth parameter according to the documentation, but the 3rd query parameter also allows the types for the options. Regardless, neither seem to respect it.
Reproduction
Create a client, set options to retry: false, showThrownOnError: true.
Have an api return a 500, or pass in a fetch client that rejects a promise to the constructor.
Expected result
Error is thrown, error boundary if provided should pick up.
Required
- My OpenAPI schema is valid and passes the Redocly validator (
npx @redocly/cli@latest lint
)
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library