-
-
Notifications
You must be signed in to change notification settings - Fork 8
Request reply support fails #233
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 @YoeriVD, thanks for raising the issue. The bindings for defining request/reply became so confusing for me, that I removed it from my proposal for the NATS bindings. So the behavior currently supported by ts-nats-template is on it's own. That said I would like to support it. However, I feel like we should talk about how you should define it in the bindings to make it less complex to understand. If we want to keep bindings:
nats:
is: requestReply
requestReply:
is: replier Which of the operations Keep in mind |
What if the binding also describes the response schema? That would remove the confusing publish entry from the channel and it would more purely describe the nats specific request/reply functionality? bindings:
nats:
is: requestReply
reply:
message:
payload:
$ref: "#/components/schemas/GeneralReply" Nats internally subscribes to a randomly generated inbox topic when you send a request. The request message captures that inbox address in it's meta data so you can send a message to that topic when replying. But I think it's probably better not to capture those internals in a asyncAPI document. |
I kinda like that yes 👍
Here I dont think |
@jonaslagoni Thoughts? PS: a good readme update explaining why this exists is implicit I would say. |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Describe the bug
Request/Reply bindings are generated as normal async subscriptions and take a non existent request object as parameter
How to Reproduce
Add the following to any channel:
Expected behavior
Request reply behaviour is generated as methods that return the response.
The text was updated successfully, but these errors were encountered: