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

@ajaishankar _if you are maintaining this repo please close this._ Since weekly downloads of [openapi-typescript](https://github.com/drwpow/openapi-typescript) are on the rise and this repo is consuming its output a word or two...

As an example, say you have a POST endpoint defined as: POST /api/notes/id/{id} that expects a body that looks like: ``` { id: 1, text: 'xyz' } ``` Because the...

hi good job ;) need feat for use custom http client like axios got

Relevant part of api.yml: ``` requestBody: content: application/json: schema: type: string ``` The generated function has correct signature: myFunc(arg: string). However, fetcher.ts only handles objects and arrays. The string "foo"...

I'm working on a project where we talk to many different instances of the same API that live on different hosts. Currently, it seems like I have to create separate...

This PR contains a couple of changes to make the TS setup more strict + some other minor things: * Turned up the strictness settings of TypeScript a notch +...

Thanks for you nice work! We use `application/json;charset=UTF-8` and not just `application/json` as it is assumed in `types.d.ts` and hence the response data type becomes `unknown`. I wonder if it's...

I am using this software on a project where for some endpoints, we receive a PDF or image file in response. The current response handling in openapi-typescript-fetch makes it hard...

Fixes #31 This is the simplest possible way I could figure out to support uploading of form bodies. Sure, those form bodies won't be type checked, but their responses will...

Hi! I don't know if this should be supported, I don't know openAPI well yet. But I'm getting an error when it tries to serialize an array of objects, like...