diff --git a/tests/test_request_params/test_header/test_nullable_and_defaults.py b/tests/test_request_params/test_header/test_nullable_and_defaults.py index 5aaae8592a..2196ec46b8 100644 --- a/tests/test_request_params/test_header/test_nullable_and_defaults.py +++ b/tests/test_request_params/test_header/test_nullable_and_defaults.py @@ -121,7 +121,10 @@ def test_nullable_required_schema(path: str): pytest.param( "/model-nullable-required", marks=pytest.mark.xfail( - reason="With Header model fields use underscores in error locs for headers" + reason=( + "For parameters declared as model, underscores are not replaced " + "with hyphens in error loc" + ) ), ), ],