@@ -2082,6 +2082,40 @@ Expected request body:
2082
2082
</SimpleModel >
2083
2083
```
2084
2084
2085
+ ### Response_StatusCodeRange_errorResponseStatusCode404
2086
+
2087
+ - Endpoint: ` get /response/status-code-range/error-response-status-code-404 `
2088
+
2089
+ Test case for range of status code in error response.
2090
+
2091
+ Verify that the result of the API is an error/exception in client, and the error response can be de-serialized to NotFoundError model (instead of Standard4XXError model).
2092
+
2093
+ Expected status code 404 and response body:
2094
+
2095
+ ``` json
2096
+ {
2097
+ "code" : " not-found" ,
2098
+ "resourceId" : " resource1"
2099
+ }
2100
+ ```
2101
+
2102
+ ### Response_StatusCodeRange_errorResponseStatusCodeInRange
2103
+
2104
+ - Endpoint: ` get /response/status-code-range/error-response-status-code-in-range `
2105
+
2106
+ Test case for range of status code in error response.
2107
+
2108
+ Verify that the result of the API is an error/exception in client, and the error response can be de-serialized to ErrorInRange model (instead of DefaultError model).
2109
+
2110
+ Expected status code 494 and response body:
2111
+
2112
+ ``` json
2113
+ {
2114
+ "code" : " request-header-too-large" ,
2115
+ "message" : " Request header too large"
2116
+ }
2117
+ ```
2118
+
2085
2119
### Routes_fixed
2086
2120
2087
2121
- Endpoint: ` get /routes/fixed `
@@ -2118,143 +2152,143 @@ Expected path: /routes/path/explicit/a
2118
2152
2119
2153
Test label expansion with explode: true when passed an array value.
2120
2154
Param value: [ "a","b"]
2121
- Expected path: /routes/label/explode/array.a.b
2155
+ Expected path: /routes/path/ label/explode/array.a.b
2122
2156
2123
2157
### Routes_PathParameters_LabelExpansion_Explode_primitive
2124
2158
2125
2159
- Endpoint: ` get /routes/path/label/explode/primitive{.param*} `
2126
2160
2127
2161
Test label expansion with explode: true when passed a primitive value.
2128
2162
Param value: "a"
2129
- Expected path: /routes/label/explode/primitive.a
2163
+ Expected path: /routes/path/ label/explode/primitive.a
2130
2164
2131
2165
### Routes_PathParameters_LabelExpansion_Explode_record
2132
2166
2133
2167
- Endpoint: ` get /routes/path/label/explode/record{.param*} `
2134
2168
2135
2169
Test label expansion with explode: true when passed a record value.
2136
2170
Param value: {a: 1, b: 2}
2137
- Expected path: /routes/label/explode/record.a=1.b=2
2171
+ Expected path: /routes/path/ label/explode/record.a=1.b=2
2138
2172
2139
2173
### Routes_PathParameters_LabelExpansion_Standard_array
2140
2174
2141
2175
- Endpoint: ` get /routes/path/label/standard/array{.param} `
2142
2176
2143
2177
Test label expansion with explode: false when passed an array value.
2144
2178
Param value: [ "a","b"]
2145
- Expected path: /routes/label/standard/array.a,b
2179
+ Expected path: /routes/path/ label/standard/array.a,b
2146
2180
2147
2181
### Routes_PathParameters_LabelExpansion_Standard_primitive
2148
2182
2149
2183
- Endpoint: ` get /routes/path/label/standard/primitive{.param} `
2150
2184
2151
2185
Test label expansion with explode: false when passed a primitive value.
2152
2186
Param value: "a"
2153
- Expected path: /routes/label/standard/primitive.a
2187
+ Expected path: /routes/path/ label/standard/primitive.a
2154
2188
2155
2189
### Routes_PathParameters_LabelExpansion_Standard_record
2156
2190
2157
2191
- Endpoint: ` get /routes/path/label/standard/record{.param} `
2158
2192
2159
2193
Test label expansion with explode: false when passed a record value.
2160
2194
Param value: {a: 1, b: 2}
2161
- Expected path: /routes/label/standard/record.a,1,b,2
2195
+ Expected path: /routes/path/ label/standard/record.a,1,b,2
2162
2196
2163
2197
### Routes_PathParameters_MatrixExpansion_Explode_array
2164
2198
2165
2199
- Endpoint: ` get /routes/path/matrix/explode/array{;param*} `
2166
2200
2167
2201
Test matrix expansion with explode: true when passed an array value.
2168
2202
Param value: [ "a","b"]
2169
- Expected path: /routes/matrix/explode/array;a.b
2203
+ Expected path: /routes/path/ matrix/explode/array;a.b
2170
2204
2171
2205
### Routes_PathParameters_MatrixExpansion_Explode_primitive
2172
2206
2173
2207
- Endpoint: ` get /routes/path/matrix/explode/primitive{;param*} `
2174
2208
2175
2209
Test matrix expansion with explode: true when passed a primitive value.
2176
2210
Param value: "a"
2177
- Expected path: /routes/matrix/explode/primitive;a
2211
+ Expected path: /routes/path/ matrix/explode/primitive;a
2178
2212
2179
2213
### Routes_PathParameters_MatrixExpansion_Explode_record
2180
2214
2181
2215
- Endpoint: ` get /routes/path/matrix/explode/record{;param*} `
2182
2216
2183
2217
Test matrix expansion with explode: true when passed a record value.
2184
2218
Param value: {a: 1, b: 2}
2185
- Expected path: /routes/matrix/explode/record;a=1;b=2
2219
+ Expected path: /routes/path/ matrix/explode/record;a=1;b=2
2186
2220
2187
2221
### Routes_PathParameters_MatrixExpansion_Standard_array
2188
2222
2189
2223
- Endpoint: ` get /routes/path/matrix/standard/array{;param} `
2190
2224
2191
2225
Test matrix expansion with explode: false when passed an array value.
2192
2226
Param value: [ "a","b"]
2193
- Expected path: /routes/matrix/standard/array;a,b
2227
+ Expected path: /routes/path/ matrix/standard/array;a,b
2194
2228
2195
2229
### Routes_PathParameters_MatrixExpansion_Standard_primitive
2196
2230
2197
2231
- Endpoint: ` get /routes/path/matrix/standard/primitive{;param} `
2198
2232
2199
2233
Test matrix expansion with explode: false when passed a primitive value.
2200
2234
Param value: "a"
2201
- Expected path: /routes/matrix/standard/primitive;a
2235
+ Expected path: /routes/path/ matrix/standard/primitive;a
2202
2236
2203
2237
### Routes_PathParameters_MatrixExpansion_Standard_record
2204
2238
2205
2239
- Endpoint: ` get /routes/path/matrix/standard/record{;param} `
2206
2240
2207
2241
Test matrix expansion with explode: false when passed a record value.
2208
2242
Param value: {a: 1, b: 2}
2209
- Expected path: /routes/matrix/standard/record;a,1,b,2
2243
+ Expected path: /routes/path/ matrix/standard/record;a,1,b,2
2210
2244
2211
2245
### Routes_PathParameters_PathExpansion_Explode_array
2212
2246
2213
2247
- Endpoint: ` get /routes/path/path/explode/array{/param*} `
2214
2248
2215
2249
Test path expansion with explode: true when passed an array value.
2216
2250
Param value: [ "a","b"]
2217
- Expected path: /routes/path/explode/array/a/b
2251
+ Expected path: /routes/path/path/ explode/array/a/b
2218
2252
2219
2253
### Routes_PathParameters_PathExpansion_Explode_primitive
2220
2254
2221
2255
- Endpoint: ` get /routes/path/path/explode/primitive{/param*} `
2222
2256
2223
2257
Test path expansion with explode: true when passed a primitive value.
2224
2258
Param value: "a"
2225
- Expected path: /routes/path/explode/primitive/a
2259
+ Expected path: /routes/path/path/ explode/primitive/a
2226
2260
2227
2261
### Routes_PathParameters_PathExpansion_Explode_record
2228
2262
2229
2263
- Endpoint: ` get /routes/path/path/explode/record{/param*} `
2230
2264
2231
2265
Test path expansion with explode: true when passed a record value.
2232
2266
Param value: {a: 1, b: 2}
2233
- Expected path: /routes/path/explode/record/a=1/b=2
2267
+ Expected path: /routes/path/path/ explode/record/a=1/b=2
2234
2268
2235
2269
### Routes_PathParameters_PathExpansion_Standard_array
2236
2270
2237
2271
- Endpoint: ` get /routes/path/path/standard/array{/param} `
2238
2272
2239
2273
Test path expansion with explode: false when passed an array value.
2240
2274
Param value: [ "a","b"]
2241
- Expected path: /routes/path/standard/array/a,b
2275
+ Expected path: /routes/path/path/ standard/array/a,b
2242
2276
2243
2277
### Routes_PathParameters_PathExpansion_Standard_primitive
2244
2278
2245
2279
- Endpoint: ` get /routes/path/path/standard/primitive{/param} `
2246
2280
2247
2281
Test path expansion with explode: false when passed a primitive value.
2248
2282
Param value: "a"
2249
- Expected path: /routes/path/standard/primitive/a
2283
+ Expected path: /routes/path/path/ standard/primitive/a
2250
2284
2251
2285
### Routes_PathParameters_PathExpansion_Standard_record
2252
2286
2253
2287
- Endpoint: ` get /routes/path/path/standard/record{/param} `
2254
2288
2255
2289
Test path expansion with explode: false when passed a record value.
2256
2290
Param value: {a: 1, b: 2}
2257
- Expected path: /routes/path/standard/record/a,1,b,2
2291
+ Expected path: /routes/path/path/ standard/record/a,1,b,2
2258
2292
2259
2293
### Routes_PathParameters_ReservedExpansion_annotation
2260
2294
@@ -2278,47 +2312,47 @@ Expected path: "/routes/path/reserved-expansion/template/foo/bar%20baz"
2278
2312
2279
2313
Test simple expansion with explode: true when passed an array value.
2280
2314
Param value: [ "a","b"]
2281
- Expected path: /routes/simple/explode/arraya.b
2315
+ Expected path: /routes/path/ simple/explode/arraya.b
2282
2316
2283
2317
### Routes_PathParameters_SimpleExpansion_Explode_primitive
2284
2318
2285
2319
- Endpoint: ` get /routes/path/simple/explode/primitive{param*} `
2286
2320
2287
2321
Test simple expansion with explode: true when passed a primitive value.
2288
2322
Param value: "a"
2289
- Expected path: /routes/simple/explode/primitivea
2323
+ Expected path: /routes/path/ simple/explode/primitivea
2290
2324
2291
2325
### Routes_PathParameters_SimpleExpansion_Explode_record
2292
2326
2293
2327
- Endpoint: ` get /routes/path/simple/explode/record{param*} `
2294
2328
2295
2329
Test simple expansion with explode: true when passed a record value.
2296
2330
Param value: {a: 1, b: 2}
2297
- Expected path: /routes/simple/explode/recorda=1,b=2
2331
+ Expected path: /routes/path/ simple/explode/recorda=1,b=2
2298
2332
2299
2333
### Routes_PathParameters_SimpleExpansion_Standard_array
2300
2334
2301
2335
- Endpoint: ` get /routes/path/simple/standard/array{param} `
2302
2336
2303
2337
Test simple expansion with explode: false when passed an array value.
2304
2338
Param value: [ "a","b"]
2305
- Expected path: /routes/simple/standard/arraya,b
2339
+ Expected path: /routes/path/ simple/standard/arraya,b
2306
2340
2307
2341
### Routes_PathParameters_SimpleExpansion_Standard_primitive
2308
2342
2309
2343
- Endpoint: ` get /routes/path/simple/standard/primitive{param} `
2310
2344
2311
2345
Test simple expansion with explode: false when passed a primitive value.
2312
2346
Param value: "a"
2313
- Expected path: /routes/simple/standard/primitivea
2347
+ Expected path: /routes/path/ simple/standard/primitivea
2314
2348
2315
2349
### Routes_PathParameters_SimpleExpansion_Standard_record
2316
2350
2317
2351
- Endpoint: ` get /routes/path/simple/standard/record{param} `
2318
2352
2319
2353
Test simple expansion with explode: false when passed a record value.
2320
2354
Param value: {a: 1, b: 2}
2321
- Expected path: /routes/simple/standard/recorda,1,b,2
2355
+ Expected path: /routes/path/ simple/standard/recorda,1,b,2
2322
2356
2323
2357
### Routes_PathParameters_templateOnly
2324
2358
0 commit comments