-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Proposal to be able to name channel item object #614
Comments
Interesting. I think you may also be interested in #618. It makes the channel Id mandatory. |
@fmvilas I see this example in the issue you mentioned: asyncapi: 3.0.0
channels:
userSignedUp:
address: user/signedup
message:
payload:
type: object
properties:
email:
type: string
format: email
operations:
sendUserSignedUpEvent:
channel: userSignedUp
action: send I'm with you until the channel and operation separation and the channel id. But why is the message/payload defined in the channel itself? wouldn't that be an operation concern? Also does this example mean, that any new operation can only send the object defined in the channels message/payload? |
In general, my response would be that it's a good practice to define what messages might circulate in a channel, however, I understand the limitations and that's why I added a section called "Further expansion > Override channel messages with operation-specific messages". For questions related to the proposal please ask them in the #618 issue so other people can see it there too 🙏 |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
I'm trying to generate websocket code from AsyncAPI docs. I don't know if this is the case for other protocols too, but for websocket subscribe and publish is performed on the same connection. Currently only Operations (publish and subscribe) are nameable using
operationId
. For sockets it makes no sense to open 2 separate connection, one for publishing one for subscribing.Let me demonstrate:
Now this could be generated as something like:
But without naming the channel it's not possible:
So this would help to name whatever concept the generated code is using to encapsulate both subscribe and publish. It could be
channelId
too in case it needs to be inline with theoperationId
.I'd just like to have a standard way for this and not come up with a home baked solution.
The text was updated successfully, but these errors were encountered: