Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FastAPIError (0.14 sec)

  1. tests/test_response_model_as_return_annotation.py

    from typing import List, Union
    
    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import FastAPIError, ResponseValidationError
    from fastapi.responses import JSONResponse, Response
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class BaseUser(BaseModel):
        name: str
    
    
    class User(BaseUser):
        surname: str
    
    
    class DBUser(User):
        password_hash: str
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
Back to top