Skip to content

fix: allow excess protocol-specific fields on Binding (issue #735) - #1228

Open
tzh476 wants to merge 2 commits into
asyncapi:masterfrom
tzh476:fix/735-binding-excess-properties
Open

fix: allow excess protocol-specific fields on Binding (issue #735)#1228
tzh476 wants to merge 2 commits into
asyncapi:masterfrom
tzh476:fix/735-binding-excess-properties

Conversation

@tzh476

@tzh476 tzh476 commented Aug 23, 2026

Copy link
Copy Markdown

Fixes #735.

Adds a [propName: string]: any; index signature to the v2 and v3 Binding spec-type interfaces (per the maintainer-approved approach), so protocol-specific binding fields such as clientId are accessible without a cast.

  • spec-types/v2.ts + spec-types/v3.ts: add index signature to Binding.
  • test/models/v2/bindings.spec.ts: regression test.

Verified: tsc --noEmit clean; v2 bindings 9/9; v3 bindings 8/8.

…#735)

Change-Id: I2b53925665dd23e273e90fe42eb8ee90b4342907
@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e365630

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/parser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide 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.

Change-Id: Ie4f192783e7f7fb3e533f058974c6a5bb51a3eb8
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binding interface does not support excess properties

1 participant