From d779d6d5c90d10488f8fe40ab3aa2167b32e4d7e Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 1 Sep 2026 01:21:44 -0700 Subject: [PATCH] docs(errors): attribute the detail[] validation shape to FastAPI The `detail[]` body with `loc`/`msg`/`type` is FastAPI's own validation error format. Naming a specific third-party API alongside it implied the shape originates there, which is not where it comes from and is not what this SDK is describing. --- tests/test_error_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_error_mapping.py b/tests/test_error_mapping.py index aea9cc4..fd9ddd8 100644 --- a/tests/test_error_mapping.py +++ b/tests/test_error_mapping.py @@ -97,7 +97,7 @@ def test_a_bucketless_429_still_means_queue_full() -> None: def test_a_router_validation_body_degrades_rather_than_coercing_its_detail() -> None: - # Router's per-field validation body is the fal/FastAPI `detail[]` shape. A + # Router's per-field validation body is the FastAPI `detail[]` shape. A # list is not a message: stringifying it would put a Python repr in front of # a caller, so the status-derived message answers instead. err = error_from_envelope(