-
Notifications
You must be signed in to change notification settings - Fork 218
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
Remove reflected values from validation tests #1622
Remove reflected values from validation tests #1622
Conversation
85e6d56
to
e0df073
Compare
mediaType: "application/json", | ||
assertion: { | ||
contents: """ | ||
{ "message" : "1 validation error detected. Value with repeated values at '/blobList' failed to satisfy constraint: Member must have unique values", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed this in https://github.com/awslabs/smithy-typescript/pull/695/files#r1119201953. This reads odd. Was ok when it was Value [80, 80] with repeated values at '/test'....
But now, probably better to say Value at 'test'... similar to the other messages.
This change broke a bunch of our (smithy-rs's) protocol tests when upgrading to |
@jjant yeah we anticipated this might break existing tests, but sorry we forgot to give you the heads up. |
This PR updates the validation protocol tests to remove the input value from being returned in the validation message.
It also adds coverage for uniqueItems validation.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.