- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for endpoint_ctx (0.06 sec)
-
fastapi/exceptions.py
class ResponseValidationError(ValidationException): def __init__( self, errors: Sequence[Any], *, body: Any = None, endpoint_ctx: Optional[EndpointContext] = None, ) -> None: super().__init__(errors, endpoint_ctx=endpoint_ctx) self.body = body class PydanticV1NotSupportedError(FastAPIError): """
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 6.8K bytes - Viewed (0) -
tests/test_validation_error_context.py
exc = RequestValidationError(errors, endpoint_ctx={"path": "GET /api/test"}) error_str = str(exc) assert "Endpoint: GET /api/test" in error_str assert 'File "' not in error_str def test_validation_error_with_no_context(): errors = [{"type": "missing", "loc": ("body", "name"), "msg": "Field required"}] exc = RequestValidationError(errors, endpoint_ctx={}) error_str = str(exc)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 06 12:21:57 UTC 2025 - 4.7K bytes - Viewed (0)