openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

Support generator options

Open thejeff77 opened this issue 3 years ago • 4 comments

Describe the solution you'd like

Either it isn't supported to pass through any of these options or it isn't supported (or I can't find it) - if its available, could you help me understand how to use them?

Please allow specifying generator options for this plugin!

thejeff77 avatar Jul 21 '22 18:07 thejeff77

ferdikoomen / openapi-typescript-codegen is not a wrapper for https://github.com/OpenAPITools / openapi-generator

gulyasfeccferenc avatar Aug 17 '22 13:08 gulyasfeccferenc

Was hoping for info about how to use typescript config options in this lib, or if not available to request this feature.

I also need more elaboration about how you think my request is to support the global openapi tooling library as opposed to what my perception was that its a request for options specific to just the typescript generator.

thejeff77 avatar Aug 17 '22 15:08 thejeff77

Sorry, I'm just misinterpret the tone or something. I'm not offended, not working on this project and your request is totally fine!

Anyway I think this project is an entirely custom solution of generating client side code opposed to the linked OpenAPI library. As far as I checked this (ferdikoomen/openapi-typsecript-codegen) project doesn't contains the code parts necessary for those options to have effect, so all of them should be implemented from the ground up which could be a really big chunk of work IMO. But probably the owner will answer these questions soon!

gulyasfeccferenc avatar Aug 23 '22 15:08 gulyasfeccferenc

Ahh ok thanks, I didn't know it was entirely custom -- in this case, how does the compiled code treat unknown enum values?

Look forward to seeing what the owner thinks too, thanks.

thejeff77 avatar Aug 26 '22 14:08 thejeff77