mirror of https://github.com/tiangolo/fastapi.git
Update header model snapshots for omitted defaults
This commit is contained in:
parent
57d36dbef2
commit
d5fc96dcfd
|
|
@ -65,7 +65,6 @@ def test_header_param_model_invalid(client: TestClient):
|
||||||
"loc": ["header", "save_data"],
|
"loc": ["header", "save_data"],
|
||||||
"msg": "Field required",
|
"msg": "Field required",
|
||||||
"input": {
|
"input": {
|
||||||
"x_tag": [],
|
|
||||||
"host": "testserver",
|
"host": "testserver",
|
||||||
"accept": "*/*",
|
"accept": "*/*",
|
||||||
"accept-encoding": "gzip, deflate",
|
"accept-encoding": "gzip, deflate",
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ def test_header_param_model_invalid(client: TestClient):
|
||||||
"type": "missing",
|
"type": "missing",
|
||||||
"loc": ["header", "save_data"],
|
"loc": ["header", "save_data"],
|
||||||
"msg": "Field required",
|
"msg": "Field required",
|
||||||
"input": {"x_tag": [], "host": "testserver"},
|
"input": {"host": "testserver"},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@ def test_header_param_model_no_underscore(client: TestClient):
|
||||||
"input": {
|
"input": {
|
||||||
"host": "testserver",
|
"host": "testserver",
|
||||||
"traceparent": "123",
|
"traceparent": "123",
|
||||||
"x_tag": [],
|
|
||||||
"accept": "*/*",
|
"accept": "*/*",
|
||||||
"accept-encoding": "gzip, deflate",
|
"accept-encoding": "gzip, deflate",
|
||||||
"connection": "keep-alive",
|
"connection": "keep-alive",
|
||||||
|
|
@ -102,7 +101,6 @@ def test_header_param_model_invalid(client: TestClient):
|
||||||
"loc": ["header", "save_data"],
|
"loc": ["header", "save_data"],
|
||||||
"msg": "Field required",
|
"msg": "Field required",
|
||||||
"input": {
|
"input": {
|
||||||
"x_tag": [],
|
|
||||||
"host": "testserver",
|
"host": "testserver",
|
||||||
"accept": "*/*",
|
"accept": "*/*",
|
||||||
"accept-encoding": "gzip, deflate",
|
"accept-encoding": "gzip, deflate",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue