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

Read spring header annotation #787

Merged

Conversation

timonback
Copy link
Member

This uses #579 as a starting point and relates to #563

With this change:

  • Springwolf is able to parse spring @Header annotations for spring method and class listeners like @KafkaListener (@Headers cannot be parsed, as it is a map that is populated during runtime method invocation)
  • The Kafka Key is mapped into the message binding (additionally), the key is kept in the header as well, which is demonstrated in the example
  • The ComponentsService becomes a pure stateful services that only stores swagger schema data. The converting of class to a swagger schema is moved to the new SwaggerSchemaService (refactor)
  • The AsyncHeader signature gets an additional parameter headerSchema to pass the info for Kafka. I am not 100% sure about this change, but it seems easiest at this point.

CC: @ctasada

Copy link

netlify bot commented Jun 1, 2024

Deploy Preview for springwolf-ui ready!

Name Link
🔨 Latest commit 907250d
🔍 Latest deploy log https://app.netlify.com/sites/springwolf-ui/deploys/665c84b183ecf1000842d7ac
😎 Deploy Preview https://deploy-preview-787--springwolf-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

timonback added 3 commits June 2, 2024 16:14
updateAsyncApiJson used the gradle plugins instead of the variable
DefaultComponentsService does not use swagger schemas anymore

As a convenient side-effect, the schema title (re-)appeared.
@sam0r040 sam0r040 merged commit b448ef8 into springwolf:master Jun 21, 2024
23 checks passed
@sam0r040 sam0r040 deleted the feat/read-spring-header-annotation branch June 21, 2024 12:00
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 this pull request may close these issues.

2 participants