Skip to content

Conversation

@DomKal11
Copy link
Collaborator

@DomKal11 DomKal11 commented Sep 4, 2025

About the PR

This change updates the AsyncAPI document validation logic to allow an empty channels object (channels: {}) as valid. According to the AsyncAPI, the channels field is required in every document, but it may be empty. The validation now only checks for the presence of the channels field, not its contents.

AsyncAPI Spec Reference:
The AsyncAPI standard requires the presence of the channels object, but does not require it to contain any channels (this is not specifically described). An empty object should be valid.
https://v2.asyncapi.com/docs/reference/specification/v2.6.0#channelsObject

More information to be found also here: https://github.com/LEGO/api-management-management-api/issues/3012

Changelog

  • Add: Added amazing features!
  • Remove: Removed tedious bugs!

Related Issues

  • Closes #

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you DomKal11 for your first pull request to AsyncAPI.NET repository. Please check out our contributors guide.

@DomKal11 DomKal11 changed the title chore: empty channels should be allowed feat: empty channels should be allowed Sep 8, 2025
@DomKal11 DomKal11 changed the title feat: empty channels should be allowed fix: empty channels should be allowed Sep 8, 2025
@DomKal11 DomKal11 merged commit 24cf1a9 into main Sep 8, 2025
11 checks passed
@DomKal11 DomKal11 deleted the dom/allow-empty-channel-object branch September 8, 2025 07:41
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.

3 participants