[BUG] typescript-angular enumNameSuffix not implemented
See original GitHub issueBug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs
- What’s the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
At the typescript-angular generator is the option enumNameSuffix defined but it isn´t implemented yet. Thus the modelFileSuffix is used instead of enumNameSuffix.
Exemple:
export enum Color { Red = 'red' }
Expected (by default):
export enum ColorEnum { Red = 'red' }
actual output vs expected output: https://github.com/OpenAPITools/openapi-generator/issues/10957#issuecomment-986559280
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Documentation for the typescript-angular Generator
Whether to ensure parameter names are unique in an operation (rename parameters that are not). true. enumNameSuffix, Suffix that will be appended to...
Read more >openapi-generator -l typescript-angular not working
I am issues while generating angular code run using the openapi-generator for language typescript-angular any idea ...
Read more >docs/generators/typescript-angular.md - GitLab
Specify the behavior when the 'additionalProperties' keyword is not present in the OAS document. If false: the 'additionalProperties' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would also be nice to have an enumNamePrefix (much like
modelNamePrefix
), but only targetted at enums. Because I would like to prefix my interfaces withI
and enumerations withE
.If you use “modelSuffix” with the value Dto and the value of “enumNameSuffix” is null, the following results for your example:
expected result would be :