Skip to content
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

Open
rzorzorzo opened this issue Jan 12, 2025 · 1 comment
Open

Operation with both send and receive action #1083

rzorzorzo opened this issue Jan 12, 2025 · 1 comment
Labels
❔ Question A question about the spec or processes

Comments

@rzorzorzo
Copy link

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.

@rzorzorzo rzorzorzo added the ❔ Question A question about the spec or processes label Jan 12, 2025
Copy link

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.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ Question A question about the spec or processes
Projects
None yet
Development

No branches or pull requests

1 participant