-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Operation with both send and receive action #1083
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. |
Hey there, there are not too many details in your question so lemme do some followups.
AsyncAPI document of your client should have a
I don't know what you mean really, sorry.
Can you elaborate more on why would you like to have 2 operations with the same operationId? maybe you have come code you can share already? Also linking this document that shows different examples on how to use |
thanks for the fast reply
a reply is the following flow: client1 -> channel -> client1 what I mean is the following use case: (-> stands for transmitting the lock operation) client1 -> channel -> client2 a possible specification of this use case would be:
which is not possible.
or:
hope this helps clarify the requirement. |
There are operations which may be both in- and outbound.
example: websocket. operationid: "lock". client sends a message to lock a resource. the server forwards this message to all clients.
the same operation "lock" is therfore sent and received.
How is this specified with asyncapi ?
action can only take the value send or receive. it does not allow a list, nor is send-receive available.
on the other hand in the operations list the operationid is unique, so there is no way to define 2 operations with the same operationid but different action values.
The text was updated successfully, but these errors were encountered: