Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 305 for Models (0.07 seconds)

  1. tests/test_response_model_include_exclude.py

            },
            "baz": "simple_include_dict model2 baz",
        }
    
    
    @app.get(
        "/simple_exclude",
        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude():
        return Model2(
            ref=Model1(foo="simple_exclude model foo", bar="simple_exclude model bar"),
            baz="simple_exclude model2 baz",
        )
    
    
    @app.get(
        "/simple_exclude_dict",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

     * string is not human readable, but can be used with classes like [InetAddress] to establish
     * connections.
     *
     * ## Why another URL model?
     *
     * Java includes both [java.net.URL][URL] and [java.net.URI][URI]. We offer a new URL
     * model to address problems that the others don't.
     *
     * ### Different URLs should be different
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 63.5K bytes
    - Click Count (0)
  3. tests/test_filter_pydantic_sub_model_pv2.py

        from pydantic import BaseModel, ValidationInfo, field_validator
    
        app = FastAPI()
    
        class ModelB(BaseModel):
            username: str
    
        class ModelC(ModelB):
            password: str
    
        class ModelA(BaseModel):
            name: str
            description: Optional[str] = None
            foo: ModelB
            tags: dict[str, str] = {}
    
            @field_validator("name")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  4. CHANGELOG/CHANGELOG-1.28.md

        - [CVE-2023-3955: Insufficient input sanitization on Windows nodes leads to privilege escalation](#cve-2023-3955-insufficient-input-sanitization-on-windows-nodes-leads-to-privilege-escalation)
        - [CVE-2023-3676: Insufficient input sanitization on Windows nodes leads to privilege escalation](#cve-2023-3676-insufficient-input-sanitization-on-windows-nodes-leads-to-privilege-escalation)
      - [Changes by Kind](#changes-by-kind-14)
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Fri Sep 05 03:47:18 GMT 2025
    - 456.9K bytes
    - Click Count (1)
  5. docs/es/docs/tutorial/response-model.md

    Cuando veas la documentación automática, puedes verificar que el modelo de entrada y el modelo de salida tendrán cada uno su propio JSON Schema:
    
    <img src="/img/tutorial/response-model/image01.png">
    
    Y ambos modelos se utilizarán para la documentación interactiva de la API:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## Otras Anotaciones de Tipos de Retorno { #other-return-type-annotations }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 17.7K bytes
    - Click Count (0)
  6. tests/test_duplicate_models_openapi.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Model(BaseModel):
        pass
    
    
    class Model2(BaseModel):
        a: Model
    
    
    class Model3(BaseModel):
        c: Model
        d: Model2
    
    
    @app.get("/", response_model=Model3)
    def f():
        return {"c": {}, "d": {"a": {}}}
    
    
    client = TestClient(app)
    
    
    def test_get_api_route():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  7. docs/de/docs/tutorial/response-model.md

    ## `response_model`-Parameter { #response-model-parameter }
    
    Es gibt Fälle, da möchten oder müssen Sie Daten zurückgeben, die nicht genau dem entsprechen, was der Typ deklariert.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  8. CHANGELOG/CHANGELOG-1.33.md

    - github.com/google/cel-go: [v0.22.0 → v0.23.2](https://github.com/google/cel-go/compare/v0.22.0...v0.23.2)
    - github.com/google/gnostic-models: [v0.6.8 → v0.6.9](https://github.com/google/gnostic-models/compare/v0.6.8...v0.6.9)
    - github.com/google/go-cmp: [v0.6.0 → v0.7.0](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0)
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Wed Dec 10 01:15:24 GMT 2025
    - 334.8K bytes
    - Click Count (0)
  9. CHANGELOG/CHANGELOG-1.34.md

    - github.com/google/cel-go: [v0.23.2 → v0.26.0](https://github.com/google/cel-go/compare/v0.23.2...v0.26.0)
    - github.com/google/gnostic-models: [v0.6.9 → v0.7.0](https://github.com/google/gnostic-models/compare/v0.6.9...v0.7.0)
    - github.com/grpc-ecosystem/grpc-gateway/v2: [v2.24.0 → v2.26.3](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.24.0...v2.26.3)
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Wed Dec 10 01:13:50 GMT 2025
    - 333.3K bytes
    - Click Count (2)
  10. docs/fr/docs/tutorial/body.md

    {* ../../docs_src/body/tutorial001.py hl[4] *}
    
    ## Créez votre modèle de données
    
    Déclarez ensuite votre modèle de données en tant que classe qui hérite de `BaseModel`.
    
    Utilisez les types Python standard pour tous les attributs :
    
    {* ../../docs_src/body/tutorial001.py hl[7:11] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:39:20 GMT 2024
    - 7.6K bytes
    - Click Count (0)
Back to Top