-
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
@AsyncOperation.Headers.Header#value is mandatory and renders as "enum" #791
Comments
Welcome to Springwolf. Thanks a lot for reporting your first issue. Please check out our contributors guide and feel free to join us on discord. |
Hi fellow OTTO colleague @ccudennec-otto, supporting dynamic values is a very good addition. We can imagine the following:
We are happy for any contribution. [0] https://github.com/springwolf/springwolf-core/blob/master/springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/annotations/AsyncOperation.java |
Hi @timonback! |
The change is staged for release and will be part of the next release. If you want to try and verify it in your application today, Thank you for the report/contribution! |
PR looks great and is merged now. The next release is planned for the last Friday of the month. If you are interested in additionally documenting a |
Awesome, thanks @timonback ! I will come back to you when I run into the issue that I need the Thanks for your support and quick feedback! Christopher |
The change is available in the latest release. 🎉 Thank you for the report/contribution and making Springwolf better! |
Describe the bug
When I want to document the headers of my operation, I need to specify the "value" of the header, e.g.:
This will render as the following YAML:
By defining the list of possible values using "enum" it should not be possible to send different values than the one defined.
IMHO it should be possible to not define
Header#value
if the value is dynamic.Did I misread the specification?
Dependencies and versions used
springwolf-core
version1.2.0
.Thanks!
Christopher
The text was updated successfully, but these errors were encountered: