Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ResponseValidationError (0.08 sec)

  1. tests/test_filter_pydantic_sub_model_pv2.py

    from typing import Optional
    
    import pytest
    from dirty_equals import HasRepr
    from fastapi import Depends, FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(name="client")
    def get_client():
        from pydantic import BaseModel, ValidationInfo, field_validator
    
        app = FastAPI()
    
        class ModelB(BaseModel):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. tests/test_response_model_as_return_annotation.py

    
    def test_response_model_no_annotation_return_invalid_dict():
        with pytest.raises(ResponseValidationError) as excinfo:
            client.get("/response_model-no_annotation-return_invalid_dict")
        assert "missing" in str(excinfo.value)
    
    
    def test_response_model_no_annotation_return_invalid_model():
        with pytest.raises(ResponseValidationError) as excinfo:
            client.get("/response_model-no_annotation-return_invalid_model")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  3. fastapi/exceptions.py

            self,
            errors: Sequence[Any],
            *,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
    
    
    class ResponseValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
            body: Any = None,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. fastapi/routing.py

    )
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import (
        EndpointContext,
        FastAPIError,
        PydanticV1NotSupportedError,
        RequestValidationError,
        ResponseValidationError,
        WebSocketRequestValidationError,
    )
    from fastapi.types import DecoratedCallable, IncEx
    from fastapi.utils import (
        create_cloned_field,
        create_model_field,
        generate_unique_id,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    ### Internal
    
    * 🔧 Update sponsors, add Speakeasy. PR [#10098](https://github.com/tiangolo/fastapi/pull/10098) by [@tiangolo](https://github.com/tiangolo).
    
    ## 0.101.1
    
    ### Fixes
    
    * ✨ Add `ResponseValidationError` printable details, to show up in server error logs. PR [#10078](https://github.com/tiangolo/fastapi/pull/10078) by [@tiangolo](https://github.com/tiangolo).
    
    ### Refactors
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top