Skip to content

fix(editor-preview-asyncapi): parse fields of resolved messages#5795

Open
glowcloud wants to merge 4 commits into
mainfrom
fix/oss-1240--parse-resolved-message-fields
Open

fix(editor-preview-asyncapi): parse fields of resolved messages#5795
glowcloud wants to merge 4 commits into
mainfrom
fix/oss-1240--parse-resolved-message-fields

Conversation

@glowcloud
Copy link
Copy Markdown
Contributor

@glowcloud glowcloud commented May 25, 2026

This PR adds a patch for @asyncapi/parser to fix an issue where resolved AsyncAPI 3 definitions would not render expandable message fields.
Should be merged after #5786 so that the changes are bundled into the new worker.

Before:
resolved-render-before

After:
resolved-render-after

Original definition:

asyncapi: 3.0.0
info:
  title: patch test
  version: 1.0.0
operations:
  testOperation:
    action: send
    title: Test Operation
    channel:
      $ref: '#/channels/testChannel'
channels:
  testChannel:
    address: test.channel
    messages:
      testMessage:
        $ref: '#/components/messages/testMessage'
components:
  messages:
    testMessage:
      title: Test Message
      payload:
        schemaFormat: application/vnd.apache.avro;version=1.9.0
        schema:
          type: record
          name: TestMessage
          fields:
            - name: testField1
              type: string
            - name: testField2
              type: long

Resolved definition:

asyncapi: 3.0.0
info:
  title: patch test
  version: 1.0.0
operations:
  testOperation:
    action: send
    title: Test Operation
    channel:
      address: test.channel
      messages:
        testMessage:
          title: Test Message
          payload:
            schemaFormat: application/vnd.apache.avro;version=1.9.0
            schema:
              type: record
              name: TestMessage
              fields:
                - name: testField1
                  type: string
                - name: testField2
                  type: long
channels:
  testChannel:
    address: test.channel
    messages:
      testMessage:
        title: Test Message
        payload:
          schemaFormat: application/vnd.apache.avro;version=1.9.0
          schema:
            type: record
            name: TestMessage
            fields:
              - name: testField1
                type: string
              - name: testField2
                type: long
components:
  messages:
    testMessage:
      title: Test Message
      payload:
        schemaFormat: application/vnd.apache.avro;version=1.9.0
        schema:
          type: record
          name: TestMessage
          fields:
            - name: testField1
              type: string
            - name: testField2
              type: long

@glowcloud glowcloud self-assigned this May 25, 2026
@glowcloud glowcloud added the bug label May 25, 2026
@robert-hebel-sb
Copy link
Copy Markdown
Contributor

@glowcloud do we have a PR created for parser repo?

@robert-hebel-sb
Copy link
Copy Markdown
Contributor

@glowcloud could we have a test to verify it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants