swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

TypeScript API generator via Swagger scheme

Results 307 swagger-typescript-api issues
Sort by recently updated
recently updated
newest added

Avoid matching "File" type usage too broadly. Fixes https://github.com/acacode/swagger-typescript-api/issues/1538 --- > [!NOTE] > Use precise regex matching to detect actual File/binary request bodies as FormData and add tests covering custom...

Adds a configuration parameter for the generated ContentType enum to avoid name clashing when the openapi schema already has a type called ContentType, this results in the generated enum called...

Fixes https://github.com/acacode/swagger-typescript-api/issues/1547 --- The snapshots have been updated using `vitest --update` --- > [!NOTE] > Fixes response format detection when responses use $ref, resulting in proper "json" format in generated...

``` /* eslint-disable */ /* tslint:disable */ /* * --------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## * ## ## * ## AUTHOR: acacode ## * ## SOURCE:...

enhancement

Thank you for the amazing package. ## Problem I'm finding that enums are sometimes generated with a `Nullable` suffix in the name when they belong to properties of objects which...

Might be related to https://github.com/acacode/swagger-typescript-api/issues/977 ## Description When using a reference to a response definition, the `format` is not set to json in `RequestParams`. Leading to `null` result when using...

Apologies if I'm missing something obvious, but I'm seeing something unexpected with our generated fetch client. Our backend API does not support exploded array query params (the Swagger specs specify...

## Description This PR fixes an issue with FormData handling when arrays are involved, particularly for multi-file uploads. ## The Problem When an API endpoint accepts an array of files...

bug

Useful when overriding the http client, and you want to make sure the request params are set. Can be set to `""` in order to not make it optional. ---...

There's a workaround that auto-sets content type form-data if it sees a payload entry of type `File`, but it matches for any (custom) types starting with "File" in JSON payloads,...