swagger-typescript-api
swagger-typescript-api copied to clipboard
TypeScript API generator via Swagger scheme
### The issue I've had I've recently ran into issues getting `swagger-typescript-api` to work in my project even though it worked a few months ago. The issue that I've ran...
 // v3/api-docs .json operationId: delete1,  I want operationId: delete or 
The following definitions ``` "definitions": { "BaseEntityWithoutId": { "required": [], "properties": { "createdAt": { "type": "string", "description": "The creation date of the object." }, "updatedAt": { "type": "string", "description": "The...
The key is set to `undefined` but even the presence of the key blocks iOS from sending the request. Workaround for this: ``` const api = new Api({ customFetch: (url,...
I am using a mono repository and would like to be able to generate the spec this way ``` cd ./monorepo/my-ui npx swagger-typescript-api -p ../api/swagger.json [...params] ``` But now I...
This pull request introduces a new feature to the `swagger-typescript-api`, allowing users to generate a HTTP client utilizing the [unjs/ofetch](https://github.com/unjs/ofetch) library for making HTTP requests. This is facilitated through the...
I'm wondering if this project would be open to adding support to generate one file per model, instead of the current design where all models are written to a single...
https://github.com/acacode/swagger-typescript-api/blob/2b6db2346028fe6fb1f311bf5b1221a89837032e/templates/base/http-clients/fetch-http-client.ejs#L123-L130 according to typescript, `baseApiParams.header` is shape of `HeaderInit`. and `type HeadersInit = [string, string][] | Record | Headers;` and header is expand in the code above, - expand `Headers`...
`security` in the original OpenAPI document is not included in `routeInfo.raw`. This PR addes it.
fixes #553 #585