openapi-ts
openapi-ts copied to clipboard
✨ Turn your OpenAPI specification into a beautiful TypeScript client
### Description After upgrading to the newer ` @hey-api/client-fetch`, the `data` object is correctly typed, but the `error` type is now untyped (previously it was correctly typed) ### OpenAPI specification...
We have the requirement to set request headers differently for different parts of the business logic. This PR allows to put in some additional request headers in each operation call....
### Description Firstly, I want to express my gratitude for continuing the development of the [ferdikoomen/openapi-typescript-codegen](https://github.com/ferdikoomen/openapi-typescript-codegen) project. I'm currently integrating the "Hey API" into a simple web application that requires...
### Description It should somehow be possible to figure out the http status code that was returned (or at least differentiate between 2xx/4xx/5xx) for responses. It's [recommended to use the...
### Description OpenAPI 3 supports various different options how query parameter `object`s should be serialized. See https://swagger.io/docs/specification/serialization/#query ## Issue description Unfortunately openapi-ts doesn't seem to support that yet. For query...
### Describe the problem Maintaining API is hard ### Describe the proposed solution We should support all use cases for custom requests to remove the need for this feature ###...
### Description When generating a client instance, I'm running into a duplicate identifier ``` export class AuthClient { public readonly model: ModelService; public readonly request: RequestService; public readonly request: BaseHttpRequest;...
Got client
### Description I would like to contribute and add support for [Got](https://github.com/sindresorhus/got) which is a very popular HTTP lib wrapper of the fetch API. Is this something you would like...
Both should have better autocompletion support in clients. If there is only one accepted value, both should be set in services (e.g. body serializer)