Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_openapi_separate_input_output_schemas.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    from .utils import PYDANTIC_V2, needs_pydanticv2
    
    
    class SubItem(BaseModel):
        subname: str
        sub_description: Optional[str] = None
        tags: List[str] = []
        if PYDANTIC_V2:
            model_config = {"json_schema_serialization_defaults_required": True}
    
    
    class Item(BaseModel):
        name: str
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 18.4K bytes
    - Viewed (2)
Back to top