Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support apiPrefix parameter #64

Open
ender74 opened this issue Apr 23, 2018 · 0 comments · May be fixed by #65
Open

support apiPrefix parameter #64

ender74 opened this issue Apr 23, 2018 · 0 comments · May be fixed by #65

Comments

@ender74
Copy link
Contributor

ender74 commented Apr 23, 2018

I have to different swagger files with same basePath (like /api). I would like to generate spring-boot server stups out of it. This results in two identical named classes (e.g. "ApiApiController") which then results in colliding bean names:

Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'apiApiController' for bean class [de.zalando.ale.asgateway.api.sorter.ApiApiController] conflicts with existing, non-compatible bean definition of same name and class [de.zalando.ale.asgateway.api.wms.ApiApiController]

To prevent this, i would like to be able to configure a Prefix which will be added to the generated Api Classnames.

ender74 added a commit to ender74/swagger-codegen-tooling that referenced this issue Apr 23, 2018
@ender74 ender74 linked a pull request Apr 23, 2018 that will close this issue
ender74 added a commit to ender74/swagger-codegen-tooling that referenced this issue Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant