-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Make Server Variables Object available as reusable objects under the Component object #707
Comments
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. |
@danielkocot Hi! We don't have However, a similar idea has been floating around in my head for a few days now 😅 You can define reusable Channel's Parameters in the Components Object, so you should be able to define Server Variable as well. However, I wonder if we can "unify" Server Variable and Channel Parameter to the one Spec Object and reuse it across Channels and Servers. I created some months ago similar issue #583 but related to the inconsistencies of schemas in |
Yeah, @magicmatatjahu. You're right! Thanks for spotting me to the issue you created and I saw that it is set for the roadmap of the 3.0.0. release. Maybe we can work together on a pull request get the ideas we have in a more clear direction. What do you think? |
We can, no problem :) Of course we can also go with direction that first we will add possibility to declare that Server Variable in the For me, we can go with that new field in the |
Yup, always in favor of more and better reusability 👍 |
Related PR #717 |
yup, all seems to be there, there is only a merge conflict in one of the PRs |
This issue can be now closed as it got merged and released. @danielkocot |
Hello everybody,
it is just an idea that came to my mind when I started to write a new post about AsyncAPI in reference to the releases 2.2.0 and 2.3.0. In my example I'm using two servers description for staging and production. Both of them have the same variable in reference to the port of the server.
So I thought it would be good to make Server Variables Objects available as reusable objects under the Component Object.
But let's discuss about it.
Best,
Daniel
The text was updated successfully, but these errors were encountered: