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

Release 10.0.2 (https://github.com/acacode/swagger-typescript-api/pull/419) added the `UtilRequiredKeys` type that produces invalid generated code when you have a schema with complex schema types (anyOf/allOf/oneOf) that reference required fields of nullable components. How...

Reproduction: ```sh npx swagger-typescript-api -p https://id.casdoor.com/swagger/swagger.json -o ./casdoor ``` Results: ```sh SyntaxError: An enum member name must be followed by a ',', '=', or '}'. (661:48) 659 | */ 660...

I group my API Routes in the swagger by naming my tags by the "category" - e.g. routes starting with `/tenants/:tenantId/users/:userId` has tag `/tenants/users` as it is affecting users in...

After updating from 13.0.3 to 13.0.28 I'm getting this error when running `generateApi` from `swagger-typescript-api` ``` undefined:29 const discriminatorKey = parseKey(discriminatorValue) ^ TypeError: parseKey is not a function at interfaceTemplate...

bug

Hi everyone, how are you doing? I've been playing with the axios template but can't figure out what's wrong here. Whenever I try to instantiate the api I get the...

bug

I am trying to define a schema mapping to `Record` with the following schema snippet: ```ts type: object additionalDetails: type: object description: Additional properties additionalProperties: anyOf: - type: string -...

bug

### Current In sta, generated Api class is using arrow function ![image](https://github.com/user-attachments/assets/bec819be-fe73-4494-ba99-1af9fa8450a6) when compile to js, the code will be like this ![image](https://github.com/user-attachments/assets/d78ae18c-4d89-45b3-a282-6f752642eb14) which has an empty prototype, will unable...

enhancement