Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for ReturnModelV1 (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_pydantic_v1_error.py

    
    def test_raises_pydantic_v1_model_in_return_type() -> None:
        class ReturnModelV1(BaseModel):
            name: str
    
        app = FastAPI()
    
        with pytest.raises(PydanticV1NotSupportedError):
    
            @app.get("/return")
            def endpoint() -> ReturnModelV1:  # pragma: no cover
                return ReturnModelV1(name="test")
    
    
    def test_raises_pydantic_v1_model_in_response_model() -> None:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top