Skip to content

Fix a bug that prevented warning events to show up for diff CLI command#2749

Merged
sugmanue merged 2 commits into
smithy-lang:mainfrom
sugmanue:sugmnue/fix-cli-diff-severity
Aug 20, 2025
Merged

Fix a bug that prevented warning events to show up for diff CLI command#2749
sugmanue merged 2 commits into
smithy-lang:mainfrom
sugmanue:sugmnue/fix-cli-diff-severity

Conversation

@sugmanue
Copy link
Copy Markdown
Contributor

Background

The severity is set to DANGER to load the old and new models to avoid events of lesser severity to show up during loading. After this was done the option was mutated and the attempt to restore the default severity didn't work. Now, the validation option keeps a different field to distinguish the value read from the CLI from overrides to be able to tell them apart and properly reset these when needed.

Testing

  • How did you test these changes?

Links

  • Links to additional context, if necessary
  • Issue #, if applicable (see here for a list of keywords to use for linking issues)

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

The severity is set to DANGER to load the old and new models to avoid
events of lesser severity to show up during loading. After this was
done the option was mutated and the attempt to restore the default
severity didn't work. Now, the validation option keeps a different
field to distinguish the value read from the CLI from overrides to be
able to tell them apart and properly reset these when needed.
@sugmanue sugmanue requested a review from a team as a code owner August 20, 2025 18:28
@sugmanue sugmanue requested a review from joewyz August 20, 2025 18:28
@sugmanue sugmanue merged commit 357f86c into smithy-lang:main Aug 20, 2025
8 checks passed
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