I have a Java api and I use swagger-maven-plugin to generate an api-file.yaml.
Then I use ng-openapi-gen and the api-file.yaml to generate the api in my angular application.
The problem is that I cannot reuse my Java enum as type in my angular application.
Hello,
I have a Java api and I use swagger-maven-plugin to generate an api-file.yaml. Then I use ng-openapi-gen and the api-file.yaml to generate the api in my angular application.
The problem is that I cannot reuse my Java enum as type in my angular application.
Here is the api-file.yaml content :
And the generated models using ng-openapi-gen :
Is there any way to also generate an
export type Color
so I can use it in the angular application ?Thanks in advance,