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

Operations are not getting populated correctly in the sidebar #496

Closed
scottpopplewell opened this issue Jan 24, 2024 · 1 comment · Fixed by #497
Closed

Operations are not getting populated correctly in the sidebar #496

scottpopplewell opened this issue Jan 24, 2024 · 1 comment · Fixed by #497
Labels
bug Something isn't working

Comments

@scottpopplewell
Copy link

Describe the bug

The spans that hold the Operation names are blank

<span class="break-all inline-block></span>

How to Reproduce

Use the latest html template v2.1.0. This does not show up in v2.0.0.

  • Screenshots

Actual
image

Expected
image

  • Link to GitHub repository with project that has issues. Sorry, the Async API doc is proprietary
  • Files that can help reproduce the issue, like your AsyncAPI file, either paste inside the issue in a code block or in a sharable [gist]

asyncapi generate fromTemplate ./api/asyncapi.yaml @asyncapi/html-template@2.1.0 generates issue

asyncapi generate fromTemplate ./api/asyncapi.yaml @asyncapi/html-template@2.0.0 generates expected result

asyncapi: 3.0.0
info:
  title: Service
  version: '1.0.0'
channels:
  ApplicationPaymentSucceeded:
    address: 'ApplicationPaymentSucceeded'
    messages:
      ApplicationPaymentSucceeded:
        name: applicationPaymentSucceeded
        title: Application Payment Succeded Event
        contentType: application/json        
        payload:
          type: object
          properties:
            data:
              $ref: '#/components/schemas/application_payment_succeeded_body'
operations:
  receiveApplicationPaymentSucceeded:
    action: 'receive'
    channel:
      $ref: '#/channels/ApplicationPaymentSucceeded'    
components:
  schemas:
    application_payment_succeeded_body:
      type: object
      description: Top level data object
      properties:
        sqs_record_message_id:
          description: AWS SQS Identifier
          type: string
          example: "f9412963-4a7c-4599-9fcd-3dedeba9fde2"
        applicant_id:
          description: AWS SQS Identifier
          type: string
          example: "p1897756"

Expected behavior

Span should have Operation name:

<span class="break-all inline-block>OperationName</span>

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

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

Successfully merging a pull request may close this issue.

1 participant