最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

OpenAPI typescript angular generator with no enumNameSuffix - Stack Overflow

programmeradmin3浏览0评论

I want to upgrade openapi-generator-maven-plugin from 4.x to 7.12.0. There is one change in the generated enum-models. With the new version they are always created with a suffix (default: Enum). To avoid breaking changes in our applications i would like to remove this suffix.

I tried calling the client generator with multiple values like

<enumNameSuffix></enumNameSuffix>

This leads to the suffix "False" being applied. Somehow i cannot pass an empty suffix to the generator. Is there a solution to this?

I want to upgrade openapi-generator-maven-plugin from 4.x to 7.12.0. There is one change in the generated enum-models. With the new version they are always created with a suffix (default: Enum). To avoid breaking changes in our applications i would like to remove this suffix.

I tried calling the client generator with multiple values like

<enumNameSuffix></enumNameSuffix>

This leads to the suffix "False" being applied. Somehow i cannot pass an empty suffix to the generator. Is there a solution to this?

Share Improve this question edited Mar 11 at 14:25 Jeremy Fiel 3,3712 gold badges13 silver badges26 bronze badges asked Mar 11 at 12:16 domturbodomturbo 312 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

try this from the docs.

<modelNameSuffix></modelNameSuffix>

modelNameSuffix openapi.generator.maven.plugin.modelNameSuffix Sets the suffix for model classes and enums

src: https://github/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin

发布评论

评论列表(0)

  1. 暂无评论