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

feat: Added @AsyncMessage #231

Merged
merged 3 commits into from Jul 7, 2023

Conversation

ctasada
Copy link
Collaborator

@ctasada ctasada commented Jun 17, 2023

Added support for a new @AsyncMessage annotation. This annotation can be used as a method parameter annotation on the same method the @AsyncPublisher or @AsyncListener annotations are used.

This new @AsyncMessage annotation allows to enrich the AsyncAPI Operation Message with all the supported fields.

The Message payload documentation stays in the Swagger @Schema annotation. This new @AsyncMessage annotation is intended to enrich the missing values.

A special case is the description, which is available in both. Any value defined in @AsyncMessage has higher priority than any other default value.

@netlify
Copy link

netlify bot commented Jun 17, 2023

Deploy Preview for springwolf-ui canceled.

Name Link
🔨 Latest commit 76143d6
🔍 Latest deploy log https://app.netlify.com/sites/springwolf-ui/deploys/64a2e7831a6d0c0008454b81

@timonback
Copy link
Member

I like the addition and believe it is a benefit for our users.
Let me consult with @sam0r040 for his thoughts on a couple details.

@ctasada ctasada force-pushed the ctasada/add-asyncmessage branch 2 times, most recently from de9a6a9 to c00d77f Compare June 26, 2023 08:09
@ctasada ctasada force-pushed the ctasada/add-asyncmessage branch 2 times, most recently from 90b7f86 to 39098ad Compare July 3, 2023 08:46
Added support for a new `@AsyncMessage` annotation. This annotation can be used as a method parameter annotation on the same method the `@AsyncPublisher` or `@AsyncListener` annotations are used.

This new `@AsyncMessage` annotation allows to enrich the AsyncAPI Operation Message with all the supported fields.

The Message payload documentation stays in the Swagger `@Schema` annotation. This new `@AsyncMessage` annotation is intended to enrich the missing values.

A special case is the description, which is available in both. Any value defined in `@AsyncMessage` has higher priority than any other default value.
@timonback timonback merged commit 3f9f87c into springwolf:master Jul 7, 2023
10 checks passed
@timonback
Copy link
Member

Great addition and thank you for the review cycles. Looking forward to release this soon and supporting more AsyncApi features

@ctasada ctasada deleted the ctasada/add-asyncmessage branch December 13, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants