Skip to content

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

Merged
glowcloud merged 4 commits into
mainfrom
fix/oss-1240--parse-resolved-message-fields
Jun 2, 2026
Merged

fix(editor-preview-asyncapi): parse fields of resolved messages#5795
glowcloud merged 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?

@glowcloud glowcloud merged commit 9c297b5 into main Jun 2, 2026
5 checks passed
@glowcloud glowcloud deleted the fix/oss-1240--parse-resolved-message-fields branch June 2, 2026 09:39
swagger-bot pushed a commit that referenced this pull request Jun 2, 2026
# [5.6.0](v5.5.2...v5.6.0) (2026-06-02)

### Bug Fixes

* **editor-preview-asyncapi:** parse fields of resolved messages ([#5795](#5795)) ([9c297b5](9c297b5))

### Features

* **editor-preview-asyncapi:** offload AsyncAPI parsing to web worker ([#5786](#5786)) ([9fdd17c](9fdd17c))

### Performance Improvements

* **editor-monaco-language-apidom:** add abort controller to validation service ([#5772](#5772)) ([4084afb](4084afb))
@swagger-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants