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

--extract-enums for generateApi

Open AlekseyP18 opened this issue 3 years ago • 2 comments

Hi, dear developer of swagger-typescript-api It's really so usefull package, that let you write the best practice code, and have a little TS problems!

I would ask you to add --extract-enums param to generateApi, because I can't use CLI, I need hooks Please, let it possible

import { generateApi } from 'swagger-typescript-api';

generateApi({ ... extractEnums: true, })

AlekseyP18 avatar Jan 19 '23 08:01 AlekseyP18

I guess it's already implemented: https://github.com/acacode/swagger-typescript-api/blob/79274ac391f6f5d12ebc2e3773c5bf6783f7312e/src/configuration.js#L75

alizadeh118 avatar Jan 21 '23 00:01 alizadeh118

@alizadeh118 Oh man) Thank you very much, I have should checked it in source code, but I was looking for it in documentation.

I think it must be added in documentation for generateApi)

AlekseyP18 avatar Jan 22 '23 12:01 AlekseyP18