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

Request/reply semantics not clear in the UI #919

Closed
bjhartin opened this issue Jan 23, 2024 · 3 comments
Closed

Request/reply semantics not clear in the UI #919

bjhartin opened this issue Jan 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@bjhartin
Copy link

bjhartin commented Jan 23, 2024

Describe the bug

I can't get replies to appear in the studio UI (or the generated HTML files - different github repo).

Related: asyncapi/cli#1082

How to Reproduce

  • Run studio
  • Paste this contract in:
asyncapi: 3.0.0
info:
  title: Test Contract
  version: 1.0.0
channels:
  PlaceOrder:
    address: 'Place Order'
    messages:
      PlaceOrder:
        $ref: '#/components/messages/NewOrder'
      OrderPlaced:
        $ref: '#/components/messages/OrderPlaced'
operations:
  PlaceOrder:
    action: receive
    channel: 
      $ref: '#/channels/PlaceOrder'
    messages:
      - $ref: '#/components/messages/NewOrder'
    reply:
      messages:
        - $ref: '#/components/messages/OrderPlaced'
      channel:
        $ref: '#/channels/PlaceOrder'
components:
  messages:
    NewOrder:
      payload:
        type: object
    OrderPlaced:
      payload:
        type: object

There is no indication that OrderPlaced is a reply that the publisher can listen for.

Expected behavior

I expected a client of my messaging API to be able to easily see request-reply semantics in the HTML interface (studio or the CLI).

@bjhartin bjhartin added the bug Something isn't working label Jan 23, 2024
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.

@bjhartin bjhartin changed the title An operation's reply is not visible in the UI Request/reply semantics not clear in the UI Jan 23, 2024
@KhudaDad414
Copy link
Member

@bjhartin

There were some errors in your files, after fixing them, I can see the reply in the html of studio.
Fixed file
Screenshot 2024-01-23 at 11 53 27

🤔

@bjhartin
Copy link
Author

@KhudaDad414 Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants