flowup / api-client-generator

Angular REST API client generator from Swagger YAML or JSON file with camel case settigs
MIT License
115 stars 21 forks source link

[Enum] generation of wrong enum name #6

Closed S-Johny closed 6 years ago

S-Johny commented 6 years ago

If you have an enum in a separate file it generates correctly but importing it somewhere will cause misnaming it should generate xxxEnum but it generates xxxModel and even file path is wrong.

vmasek commented 6 years ago

Thanks for reporting. This seems like a bigger issue that I've thought. Problem is that generator doesn't have the knowledge about property type signature (model or enum) when being appended to interface properties.

Will be resolved after refactoring in the near future version.

vmasek commented 6 years ago

Resolved by baefa8f