RohanPalkar
4 years agoOccasional Contributor
Can I define a custom attributes as part of CodegenParameter
I am trying to define a custom code generator for my area by extending the DefaultCodegen and implementing the CodegenConfig interface. I have a custom rest-api client that I have customised to the needs of my product and I am trying to generate mycustom-api-client code for which, I need to define some special parameters, ideally CodegenParameter so that I can perform some conditional logic in my code-generator implementation.
How can I add more attributes/parameters to CodegenParameter or any CodegenModelType ? or can I extend the CodegenParameter ?