Skip to content

Operation with both send and receive action #1083

@rzorzorzo

Description

@rzorzorzo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❔ QuestionA question about the spec or processes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions