-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Unable to reuse Server Objects
defined in Components.servers
field
#705
Comments
Good catch!
That would be a new feature, as regardless of what you define in your components sections, servers are not "active" until referenced under |
Right, I assumed it was like you explained but I'd rather asked ;] Having said that, maybe it warrants clarification in the spec? But maybe not...not sure. |
Could definitely be now that you can define servers in multiple places 🤔 Maybe another issue for further discussing that? |
Yeah I think it's worth discussing further. If agreed, I'll extract part of this issue regarding servers to a new one. Second point extracted to #712 |
This issue can be now closed as it got merged and released. @char0n |
@smoya thanks, closing. |
Hello everybody,
While implementing 2.3 support into tooling I've noticed couple of inconsistencies/errors in the specification.
As AsyncAPI 2.3.0 introduced new
Components.servers
field, there is no way howServer Objects
defined in this map can be used later in the definition.Usage in
Servers Object
I assume first intended usecase was to reference
Server Object
defined inComponents.servers
field inServers Object
. This intention is clear from the release article:What the article is showing is not possible according to the spec as the
Servers Object
pattern field only allowsServer Object
and notServer Object | Reference Object
.Usage in
Channel Item Object
.servers
fieldWith this I'm not 100% sure of the intended usage. The specification says following:
This limits using referencing
Server Object
to ones definedServers Object
(by name). Should we allow referencing theServer Object
even fromComponents.servers
field as well?I'll provide a PR in a couple of minutes.
The text was updated successfully, but these errors were encountered: