We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bindings
issue might be with any bindings, not just channel, I did not check
spec says that in channels I can also have $ref
$ref
which makes sense as I want to have some reusable stuff in components. channelBindings
components. channelBindings
I would expect below example to work (studio direct link - btw I love new share button in studio:
asyncapi: '3.0.0' info: title: MySlackBot API version: '1.0.0' description: | The MySlackBot App manages popular messages in a workspace by monitoring message reaction data from Slack's Event API. servers: ws: host: wss://wss-primary.slack.com/ protocol: wss description: "Websocket URL generated to communicate with Slack" channels: root: address: / messages: reactionListener: {} helloListener: {} bindings: $ref: "#/components/channelBindings/connectionQuery" operations: helloListenerOperation: action: receive channel: $ref: "#/channels/root" messages: - $ref: "#/channels/root/messages/helloListener" reactionListenerOperation: action: receive channel: $ref: "#/channels/root" messages: - $ref: "#/channels/root/messages/reactionListener" components: channelBindings: connectionQuery: ws: query: {}
but this says is not allowed
bindings: $ref: "#/components/channelBindings/connectionQuery"
After so many years, I still do not feel like JSON Schema expert so can you confirm, but I think in here https://github.com/asyncapi/spec-json-schemas/blob/next-major-spec/definitions/3.0.0/channel.json#L65 we should instead have something like
"bindings": { "oneOf": [ { "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { "$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json" } ]
thoughts?
The text was updated successfully, but these errors were encountered:
I'm from my phone so checking code is a pain, but i noticed the same happens with others like operation bindings.
Regarding your suggested solution, seems ok to me.
Sorry, something went wrong.
Yeah, I think it does make sense indeed.
@fmvilas @smoya PR opened: #442
solved in next-major-spec
next-major-spec
No branches or pull requests
spec says that in channels I can also have
$ref
which makes sense as I want to have some reusable stuff in
components. channelBindings
I would expect below example to work (studio direct link - btw I love new share button in studio:
but this says is not allowed
After so many years, I still do not feel like JSON Schema expert so can you confirm, but I think in here https://github.com/asyncapi/spec-json-schemas/blob/next-major-spec/definitions/3.0.0/channel.json#L65 we should instead have something like
thoughts?
The text was updated successfully, but these errors were encountered: