Skip to content

feat: make channels optional - #682

Closed
smoya wants to merge 1 commit into
asyncapi:2022-01-releasefrom
smoya:feat/channelsOptional
Closed

smoya wants to merge 1 commit into
asyncapi:2022-01-releasefrom
smoya:feat/channelsOptional

Conversation

@smoya

@smoya smoya commented Jan 4, 2022

Copy link
Copy Markdown
Member

Description

Part of #661.

This PR removes the required prefix from the channels field at root level of the document.

Related issue(s)
#661

@sonarqubecloud

sonarqubecloud Bot commented Jan 4, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@smoya

smoya commented Jan 18, 2022

Copy link
Copy Markdown
Member Author

cc @derberg @fmvilas as you both are code owners.

@jonaslagoni

Copy link
Copy Markdown
Member

Is this not a breaking change? 🤔

@magicmatatjahu

Copy link
Copy Markdown
Member

@jonaslagoni

Is this not a breaking change? 🤔

If we switch optional to required then yes, but switching required -> optional won't break any AsyncAPI document.

@fmvilas

fmvilas commented Jan 18, 2022 •

Copy link
Copy Markdown
Contributor

Is this not a breaking change? 🤔

It will not be forward compatible but it will be backward compatible. I think we should also make it clear in the spec, that we aim for backward compatibility.

@fmvilas fmvilas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. Let's wait for @derberg.

@jonaslagoni

jonaslagoni commented Jan 18, 2022 •

Copy link
Copy Markdown
Member

It will not be forward compatible but it will be backward compatible. I think we should also make it clear in the spec, that we aim for backward compatibility.

@fmvilas see #688

@fmvilas fmvilas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I thought twice about it and think this one is a breaking change and should be postponed to v3.

@dalelane

Copy link
Copy Markdown
Collaborator

I thought twice about it and think this one is a breaking change and should be postponed to v3.

I'll have a look to see if there is anything else that needs to be pulled out of 2.3 release branches

@smoya

smoya commented Jan 19, 2022

Copy link
Copy Markdown
Member Author

As per asyncapi/spec-json-schemas#146 (comment), we won't include this change in 2.3.0 but rather in 3.0.0.

@smoya

smoya commented Jan 19, 2022

Copy link
Copy Markdown
Member Author

/dnm

@asyncapi-bot
asyncapi-bot deleted the branch asyncapi:2022-01-release January 31, 2022 14:44
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.

6 participants