asyncapi / spec

The AsyncAPI specification allows you to create machine-readable definitions of your asynchronous APIs.
https://www.asyncapi.com
Apache License 2.0
4.26k stars 269 forks source link

Add message type to describe Event/Command/Other #1074

Open rj93 opened 4 days ago

rj93 commented 4 days ago

Messages are frequently either considered to be Commands or Events, there is even a brief section in the docs about it.

However the message spec doesn't currently have anyway to differnaitate these types of messages.

This could potentially be useful in the code generators to either implement "server" or "client" implementations.

Servers would generate the listeners for commands, and emitters for events. While clients would generate the inverse.

github-actions[bot] commented 4 days ago

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.