Skip to content

fix error msg for invalid operation io bindings#1728

Merged
milesziemer merged 1 commit intosmithy-lang:mainfrom
milesziemer:fix-operation-io-binding-error-message
Apr 10, 2023
Merged

fix error msg for invalid operation io bindings#1728
milesziemer merged 1 commit intosmithy-lang:mainfrom
milesziemer:fix-operation-io-binding-error-message

Conversation

@milesziemer
Copy link
Copy Markdown
Contributor

Fixes issue #1719, which pointed out that error messages when operation input targeted structures with the @output trait (and vice-versa) were incorrect. The error message was built using the operation <-> target relationship name for the name of the invalid trait, instead of using it as the operation property which targeted an invalid shape.

The error message was also updated to include the shape id of the targeted shape, and existing tests were updated to reflect that change.

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

@milesziemer milesziemer requested a review from a team as a code owner April 10, 2023 19:25
Fixes issue smithy-lang#1719, which pointed out that error messages when operation
input targeted structures with the `@output` trait (and vice-versa) were
incorrect. The error message was built using the operation <-> target
relationship name for the name of the invalid trait, instead of using
it as the operation property which targeted an invalid shape.

The error message was also updated to include the shape id of the
targeted shape, and existing tests were updated to reflect that
change.
@milesziemer milesziemer force-pushed the fix-operation-io-binding-error-message branch from 2ce1032 to 50a5b59 Compare April 10, 2023 21:41
@milesziemer milesziemer merged commit 44e3fdf into smithy-lang:main Apr 10, 2023
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