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 generated html #1082

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

Request/reply semantics not clear in generated html #1082

bjhartin opened this issue Jan 23, 2024 · 2 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 the generated HTML files. Let me know if this is the wrong place.

Related: asyncapi/studio#919

How to Reproduce

  • Paste this contract into a file 'asyncapi.yml' and run the cli's generate command with the html template.
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
Contributor

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
Copy link
Author

Closing this because it was my misunderstanding.

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

1 participant