-
Notifications
You must be signed in to change notification settings - Fork 77
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
AsyncApiDocket bean deprecation #445
Comments
I could migrate successfully to the new annotation based approach, thanks for the hints in this ticket. It would be nice if also subpackages within the |
All packages below and including By increasing the log level, you should find log entries containing
|
I've noticed that Springwolf annotations are recognized only when they are placed within classes annotated with |
You're right, I've found the configuration error on my side 👍 I've detected a minor issue, if we implement interfaces and document them, an unexpected documentation is also added for the interface method (an easy workaround is to define the |
Hi @hirth-abi, |
Hi @silentrobi
We recently improved the handling of detecting on interfaces in #475
Is the |
Yesterday, we also resolved the second outstanding limitation #462 (detect annotations in classes that are instantiated via @jenarp, @hirth-abi Feel free to try the current |
Hi @timonback, |
Hi @timonback 0.17.0 was already working fine and the snapshot continues to do so. Perhaps just a question, I wanted to add the first time a description to a message, and |
Great to hear. That would be a bug if the description is ignored. |
1.0.0 does not contain the AsyncApiDocket anymore. Feel free to open an issue, if you encounter any issues. |
Dear users of Springwolf,
after the deprecation of the
AsyncApiDocket
bean, some people have already asked us about migration options for their use cases.Therefore, we will gather all information about it in this issue. We will try to address your concerns before we remove the
AsyncApiDocket
bean.If you have questions please add a comment and link.
1. Add mandatory properties to application properties
Source: https://www.springwolf.dev/docs/quickstart
Map all entries of the docket to its Spring properties equivalent. The Spring properties equivalent start with
springwolf.docket..
Example: The title within the info object is
springwolf.docket.info.title=my title
2. Convert consumers and/or producers to annotations
Consumers and/or producers defined in the AsyncApiDocket have to be converted to the
@AsyncListener
and/or@AsyncPublisher
annotation approach. See the Consumers and Producers page on how to map the properties.You can use the Spring Expression language to look up values from application properties at runtime. For example:
Technically, it does not matter on which method you put those annotations. If you do not have an explicit method for consuming/producing, you can put the annotation on any method you like. Just make sure you specify the
payloadType
property.The text was updated successfully, but these errors were encountered: