Skip to content

Allow operations.{{op}}.messages #15

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

Open
WiZeYAR opened this issue Mar 27, 2025 · 0 comments
Open

Allow operations.{{op}}.messages #15

WiZeYAR opened this issue Mar 27, 2025 · 0 comments

Comments

@WiZeYAR
Copy link
Contributor

WiZeYAR commented Mar 27, 2025

According to spec, an operation can send/receive a subset of messages that are defined in the channel.

Proposed changes:

  1. A compiler must check, if operation.{{op}}.messages or operation.{{op}}.reply.messages exists
  2. If they do not exist, the compilation process goes as it did before
  3. If they exist, compiler must assert that the messages are indeed a subset of the corresponding channels' messages
  4. Generated producers must only take this subset of messages as argument. Any other message type is prohibited.
  5. Receiving side must reject the message, if it violates channel message constraints, but nack all messages that do not violate channel constraints, but violate operation ones.
  6. If multiple operations consume from the same channel, all operations must confirm that they do not support this message before the nack process occurs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant