Skip to content

feat(ls): update Anypoint MQ Bindings#5128

Merged
glowcloud merged 6 commits intomainfrom
feat/update-anypointmq-bindings
Mar 18, 2026
Merged

feat(ls): update Anypoint MQ Bindings#5128
glowcloud merged 6 commits intomainfrom
feat/update-anypointmq-bindings

Conversation

@glowcloud
Copy link
Contributor

@glowcloud glowcloud commented Mar 12, 2026

This PR updates Anypoint MQ Bindings to version 0.1.0 and fixes missing version 0.0.1, wrong validation for the fields and validation not appearing for Server Bindings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
const destinationTypeTypeLint: LinterMeta = {
code: ApilintCodes.ASYNCAPI2_ANYPOINTMQ_CHANNEL_BINDING_FIELD_DESTINATION_TYPE_TYPE,
source: 'apilint',
message: "'destinationType' value must be a string",
Copy link
Contributor

Choose a reason for hiding this comment

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

should we be stricter with this rule since the description says? The type of destination, which MUST be either exchange or queue or fifo-queue

documentation: {
kind: 'markdown',
value:
'[Schema object](https://www.asyncapi.com/docs/reference/specification/v2.6.0#schemaObject)\n\\\n\\\n**Optional**. A Schema object containing the definitions for Anypoint MQ-specific headers (so-called protocol headers). This schema MUST be of type `object` and have a `properties` key. Examples of Anypoint MQ protocol headers are `messageId` and `messageGroupId`.',
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong version would be showed for other asyncapi specs :/
could you create an issue for supporting dynamic version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can probably just add targetSpec and separate the rule for 3.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeap, we could, but we would have to do this also for async 3.1 soon even though the rule will be the same. 🤔

Copy link
Contributor Author

@glowcloud glowcloud Mar 13, 2026

Choose a reason for hiding this comment

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

I think that in general we use the latest spec for the major version, unless some fields have changed 🤔
For targeting minor versions - we probably need to go through each element to update them in that case 😔

@glowcloud glowcloud merged commit 87b0a46 into main Mar 18, 2026
9 checks passed
@glowcloud glowcloud deleted the feat/update-anypointmq-bindings branch March 18, 2026 07:11
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