Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 282 of 282 for BaseModel (0.06 seconds)

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

  1. fastapi/applications.py

                    For example, if you have a model like:
    
                    ```python
                    from pydantic import BaseModel
    
                    class Item(BaseModel):
                        name: str
                        tags: list[str] = []
                    ```
    
                    When `Item` is used for input, a request body, `tags` is not required,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 176.3K bytes
    - Click Count (0)
  2. docs/en/docs/release-notes.md

    ```Python
    from fastapi import FastAPI
    from pydantic import BaseModel as BaseModelV2
    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    class ItemV2(BaseModelV2):
        title: str
        summary: str | None = None
    
    
    app = FastAPI()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top