From bfc09d944055c4abf870f939e836fee11e502298 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Fri, 6 Feb 2026 16:33:45 +0100 Subject: [PATCH] Update xfail reason msg --- .../test_header/test_nullable_and_defaults.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" + ) ), ), ],