openapi-typescript-fetch icon indicating copy to clipboard operation
openapi-typescript-fetch copied to clipboard

A typed fetch client for openapi-typescript

Results 38 openapi-typescript-fetch issues
Sort by recently updated
recently updated
newest added

OpErrorType consider only 200 and 201 as "successful" responses (see https://github.com/ajaishankar/openapi-typescript-fetch/blob/2e0d66e8e5c7ef74dd406c810b8b2b61f5f5ae1e/src/types.ts#L67), when according to the HTTP spec, [all 2xx status codes signify success](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses). This becomes a problem e.g. for a...

I wanted to do some quick handling to set the `err.message` of `ApiError`s to something in my body, so I whipped up a quick middleware that looks like this: ```ts...

Hi, thank you for your cool library. I was wondering if it is possible to make `arg` parameter optional when there are no arguments (or there may be none) instead...

I faced the issue that I could not import `openapi-typescript-fetch` as ESM. After some research, I think it's related to missing package.json to specify `type` in the distributions. See https://www.sensedeep.com/blog/posts/2021/how-to-create-single-source-npm-module.html...

We have the {id} of the rest api's path also included in the body of the request. That might be a questionable choice, but is as it is. Unfortunately, atm...

Atm, other formats are not allowed. To be backwards compatible, one option could be to always also return the original response ```js async function getResponseData(response: Response) { // ... const...

the private `never: unique symbol` causes inferred types to "references an inaccessible 'unique symbol' type." in places where explicit type annotations are not possible. It doesn't seem necessary to use...

Hello, Primary, thank you for you excellente library, I have a problem when i send an object with an Array of Object, this library converted my array into the string...