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

fix error msg for invalid operation io bindings #1728

Conversation

milesziemer
Copy link
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