java-spring-template icon indicating copy to clipboard operation
java-spring-template copied to clipboard

[BUG] Handling multiple async api files

Open ugo-blo opened this issue 11 months ago • 4 comments

Describe the bug.

When generating classes from multiple AsyncAPI files, I split classes into different packages. However, this creates a Config class with the same name in each package, which raises a ConflictBeanDefinitionException because they all use the same bean name 'config'.

Is there a way to handle this problem?

Expected behavior

Having different name for each bean.

Screenshots

.

How to Reproduce

.

🥦 Browser

None

👀 Have you checked for similar open issues?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

ugo-blo avatar Jan 07 '25 09:01 ugo-blo

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

github-actions[bot] avatar Jan 07 '25 09:01 github-actions[bot]

hello @ugo-blo i would love to solve this issue. Would you please assign it to me.

gourav-k-shaw avatar Jan 10 '25 12:01 gourav-k-shaw

Hello @gourav-k-shaw, I can't assign you to this issue.

ugo-blo avatar Jan 21 '25 10:01 ugo-blo

Hey @ugo-blo ,could you please provide a reproducer? Thanks!

Malaydewangan09 avatar Mar 28 '25 10:03 Malaydewangan09