Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ChangedNullability diff evaluator #1454

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Conversation

mtdowling
Copy link
Member

This validator now does not emit trait change warnings when the required trait is changed, and instead relies on ChangedNullability (this matches how the box trait is handled too). When the required trait is removed from a member that targets a structure or union, a warning is emitted instead of an error to indicate that this is often allowed in Smithy generators that treat these members as always nullable regardless of the required trait.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mtdowling mtdowling requested a review from a team as a code owner October 18, 2022 23:59
This validator now does not emit trait change warnings when the required
trait is changed, and instead relies on ChangedNullability (this matches
how the box trait is handled too). When the required trait is removed
from a member that targets a structure or union, a warning is emitted
instead of an error to indicate that this is often allowed in Smithy
generators that treat these members as always nullable regardless of
the required trait.
@mtdowling mtdowling force-pushed the fix-changed-nullability branch from 6fbdee9 to 37b7e4c Compare October 19, 2022 17:22
@mtdowling mtdowling requested a review from syall October 19, 2022 17:23
@mtdowling mtdowling merged commit b130116 into main Oct 19, 2022
@mtdowling mtdowling deleted the fix-changed-nullability branch October 24, 2022 16:26
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.

2 participants