Closed mmza94 closed 1 year ago
I'm sorry, but that's a design decision in ng-openapi-gen.
Could you go into detail as to why this is not something we should choose for ourselves?
Without an enum I'd be using magic strings, which I would rather avoid.
For example I want to limit the possible input values in a component to the values provided by the JSON schema. I do not want to copy the possible values from the generated model and would rather point to the generated enum.
I have the same problem. Generating the enum like a string, then when i pass to my backend (nestjs) doesn't accept this string value
Do we have any update to this? would love to have this. @luisfpg
It would be great to have the same output as openapi-generator produces in case of enum properties parsing.
Yaml snippet:
Generated by openapi-generator:
Generated by ng-openapi-gen:
"ng-openapi-gen": "0.23.0"