Skip to content

Commit a105c8e

Browse files
committed
Fix HeaderMap issue
1 parent 16593dd commit a105c8e

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

examples/axum-example/tests/snapshots/integration_test__openapi.snap

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,62 @@ expression: "std::fs::read_to_string(\"openapi.json\").unwrap()"
247247
}
248248
}
249249
},
250+
"/error/header-map": {
251+
"get": {
252+
"operationId": "header_map_endpoint",
253+
"responses": {
254+
"200": {
255+
"description": "Successful response",
256+
"headers": {},
257+
"content": {
258+
"application/json": {
259+
"schema": {
260+
"type": "string"
261+
}
262+
}
263+
}
264+
},
265+
"400": {
266+
"description": "Error response",
267+
"content": {
268+
"application/json": {
269+
"schema": {
270+
"$ref": "#/components/schemas/ErrorResponse2"
271+
}
272+
}
273+
}
274+
}
275+
}
276+
}
277+
},
278+
"/error/header-map2": {
279+
"get": {
280+
"operationId": "header_map_endpoint2",
281+
"responses": {
282+
"200": {
283+
"description": "Successful response",
284+
"headers": {},
285+
"content": {
286+
"application/json": {
287+
"schema": {
288+
"type": "string"
289+
}
290+
}
291+
}
292+
},
293+
"400": {
294+
"description": "Error response",
295+
"content": {
296+
"application/json": {
297+
"schema": {
298+
"$ref": "#/components/schemas/ErrorResponse2"
299+
}
300+
}
301+
}
302+
}
303+
}
304+
}
305+
},
250306
"/foo/foo": {
251307
"post": {
252308
"operationId": "signup",

0 commit comments

Comments
 (0)