Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RecursiveItemViaSubmodel (0.1 sec)

  1. tests/test_validate_response_recursive/app_pv2.py

    RecursiveItem.model_rebuild()
    
    
    class RecursiveSubitemInSubmodel(BaseModel):
        sub_items2: List["RecursiveItemViaSubmodel"] = []
        name: str
    
    
    class RecursiveItemViaSubmodel(BaseModel):
        sub_items1: List[RecursiveSubitemInSubmodel] = []
        name: str
    
    
    RecursiveSubitemInSubmodel.model_rebuild()
    RecursiveItemViaSubmodel.model_rebuild()
    
    
    @app.get("/items/recursive", response_model=RecursiveItem)
    def get_recursive():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_validate_response_recursive/app_pv1.py

        sub_items: List["RecursiveItem"] = []
        name: str
    
    
    RecursiveItem.update_forward_refs()
    
    
    class RecursiveSubitemInSubmodel(BaseModel):
        sub_items2: List["RecursiveItemViaSubmodel"] = []
        name: str
    
    
    class RecursiveItemViaSubmodel(BaseModel):
        sub_items1: List[RecursiveSubitemInSubmodel] = []
        name: str
    
    
    RecursiveSubitemInSubmodel.update_forward_refs()
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top