@@ -18,7 +18,8 @@ apply MalformedEnum @httpMalformedRequestTests([
18
18
id : " RestJsonMalformedEnumString" ,
19
19
documentation : """
20
20
When a string member does not contain a valid enum value,
21
- the response should be a 400 ValidationException.""" ,
21
+ the response should be a 400 ValidationException. Internal-only
22
+ enum values are excluded from the response message.""" ,
22
23
protocol : restJson1 ,
23
24
request : {
24
25
method : " POST" ,
@@ -51,7 +52,8 @@ apply MalformedEnum @httpMalformedRequestTests([
51
52
id : " RestJsonMalformedEnumList" ,
52
53
documentation : """
53
54
When a list member value does not contain a valid enum value,
54
- the response should be a 400 ValidationException.""" ,
55
+ the response should be a 400 ValidationException. Internal-only
56
+ enum values are excluded from the response message.""" ,
55
57
protocol : restJson1 ,
56
58
request : {
57
59
method : " POST" ,
@@ -84,7 +86,8 @@ apply MalformedEnum @httpMalformedRequestTests([
84
86
id : " RestJsonMalformedEnumMapKey" ,
85
87
documentation : """
86
88
When a map member's key does not contain a valid enum value,
87
- the response should be a 400 ValidationException.""" ,
89
+ the response should be a 400 ValidationException. Internal-only
90
+ enum values are excluded from the response message.""" ,
88
91
protocol : restJson1 ,
89
92
request : {
90
93
method : " POST" ,
@@ -117,7 +120,8 @@ apply MalformedEnum @httpMalformedRequestTests([
117
120
id : " RestJsonMalformedEnumMapValue" ,
118
121
documentation : """
119
122
When a map member's value does not contain a valid enum value,
120
- the response should be a 400 ValidationException.""" ,
123
+ the response should be a 400 ValidationException. Internal-only
124
+ enum values are excluded from the response message.""" ,
121
125
protocol : restJson1 ,
122
126
request : {
123
127
method : " POST" ,
@@ -150,7 +154,8 @@ apply MalformedEnum @httpMalformedRequestTests([
150
154
id : " RestJsonMalformedEnumUnion" ,
151
155
documentation : """
152
156
When a union member's value does not contain a valid enum value,
153
- the response should be a 400 ValidationException.""" ,
157
+ the response should be a 400 ValidationException. Internal-only
158
+ enum values are excluded from the response message.""" ,
154
159
protocol : restJson1 ,
155
160
request : {
156
161
method : " POST" ,
@@ -194,6 +199,12 @@ structure MalformedEnumInput {
194
199
enum EnumString {
195
200
ABC = " abc"
196
201
DEF = " def"
202
+
203
+ @internal
204
+ GHI = " ghi"
205
+
206
+ @tags ([" internal" ])
207
+ JKL = " jkl"
197
208
}
198
209
199
210
list EnumList {
0 commit comments