You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a string member does not contain a valid enum value,
55
+
the response should be a 400 ValidationException. Internal-only
56
+
enum values are excluded from the response message.""",
57
+
protocol: restJson1,
58
+
request: {
59
+
method: "POST",
60
+
uri: "/MalformedEnum",
61
+
body: """
62
+
{ "stringWithEnumTrait" : $value:S }""",
63
+
headers: {
64
+
"content-type": "application/json"
65
+
}
66
+
},
67
+
response: {
68
+
code: 400,
69
+
headers: {
70
+
"x-amzn-errortype": "ValidationException"
71
+
},
72
+
body: {
73
+
mediaType: "application/json",
74
+
assertion: {
75
+
contents: """
76
+
{ "message" : "1 validation error detected. Value at '/stringWithEnumTrait' failed to satisfy constraint: Member must satisfy enum value set: [abc, def]",
77
+
"fieldList" : [{"message": "Value at '/stringWithEnumTrait' failed to satisfy constraint: Member must satisfy enum value set: [abc, def]", "path": "/stringWithEnumTrait"}]}"""
0 commit comments