openapi-typescript-fetch
openapi-typescript-fetch copied to clipboard
A typed fetch client for openapi-typescript
Hi! I'm trying to create some code that will generate all the available operations based on the paths automatically, so you don't need to create another `fetch.path("route").method("method").create()` every time you...
The library had trouble detecting the POST body payload types of my API. The argument was being typed as an empty object, and preventing me from sending any payloads. I...
### 🐸 Problem to Solve OpenAPI 3 accepts parameters whose schema is an object. When passing data to a fetch function, nested query values get stringified as `[object Object]`. ###...
I need to pass formdata for file upload to the request, but there is no documented way how to do that.
Using this library with vite and pre-render, produces the following error: ``` [vite-plugin-ssr:autoFullBuild] Named export 'Fetcher' not found. The requested module 'openapi-typescript-fetch' is a CommonJS module, which may not support...
Declares the package `type` as `module` and uses `.cjs` extension for CommonJS files. Fixes #41
Infer definition of application/json content-type for all parameters, for instance application/json; charset=utf-8 Related to #38 and #8
Hi, I use OpenApi3 and I noticed that when loading my types into `Fetcher.for()` it doesn't shows my response data types properly. All responses types becomes as `unknown`. But when...
When I attempt to use `FetchErrorType`, TypeScript emits the following error: > The inferred type of `makeHook`[^1] references an inaccessible 'unique symbol' type. A type annotation is necessary. > ts(2527)...
Partially fixed #35, supporting 202 as Success response. To manage long-running jobs behind an API, 202 is necessary to describe the situation, that "job is accepted but not finished yet."