Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 386 for Models (0.04 seconds)

  1. docs/fr/docs/python-types.md

    Remarquez que cela signifie « `one_person` est une **instance** de la classe `Person` ».
    
    Cela ne signifie pas « `one_person` est la **classe** appelée `Person` ».
    
    ## Modèles Pydantic { #pydantic-models }
    
    [Pydantic](https://docs.pydantic.dev/) est une bibliothèque Python pour effectuer de la validation de données.
    
    Vous déclarez la « forme » de la donnée sous forme de classes avec des attributs.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/security/simple-oauth2.md

        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info | 情報
    
    `**user_dict` のより完全な解説は、[**追加モデル**のドキュメント](../extra-models.md#about-user-in-dict)を参照してください。
    
    ///
    
    ## トークンを返す { #return-the-token }
    
    `token` エンドポイントのレスポンスは JSON オブジェクトでなければなりません。
    
    `token_type` を含める必要があります。ここでは「Bearer」トークンを使うので、トークンタイプは「`bearer`」です。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  3. docs/ko/docs/python-types.md

    그리고 다시, 에디터의 모든 지원을 받을 수 있습니다:
    
    <img src="/img/python-types/image06.png">
    
    이는 "`one_person`은 `Person` 클래스의 **인스턴스**"라는 뜻입니다.
    
    "`one_person`은 `Person`이라는 **클래스**다"라는 뜻이 아닙니다.
    
    ## Pydantic 모델 { #pydantic-models }
    
    [Pydantic](https://docs.pydantic.dev/)은 데이터 검증을 수행하는 파이썬 라이브러리입니다.
    
    속성을 가진 클래스 형태로 데이터의 "모양(shape)"을 선언합니다.
    
    그리고 각 속성은 타입을 가집니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  4. fastapi/dependencies/utils.py

            fields_to_extract = get_cached_model_fields(first_field.field_info.annotation)
            single_not_embedded_field = True
            # If headers are in a Pydantic model, the way to disable convert_underscores
            # would be with Header(convert_underscores=False) at the Pydantic model level
            default_convert_underscores = getattr(
                first_field.field_info, "convert_underscores", True
            )
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  5. fastapi/param_functions.py

    from typing import Annotated, Any, Literal
    
    from annotated_doc import Doc
    from fastapi import params
    from fastapi._compat import Undefined
    from fastapi.datastructures import _Unset
    from fastapi.openapi.models import Example
    from pydantic import AliasChoices, AliasPath
    from typing_extensions import deprecated
    
    
    def Path(  # noqa: N802
        default: Annotated[
            Any,
            Doc(
                """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 68K bytes
    - Click Count (0)
  6. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 4K bytes
    - Click Count (0)
  7. docs/fr/docs/tutorial/response-model.md

    Dans la documentation automatique, vous pouvez vérifier que le modèle d'entrée et le modèle de sortie auront chacun leur propre JSON Schema :
    
    <img src="/img/tutorial/response-model/image01.png">
    
    Et les deux modèles seront utilisés pour la documentation API interactive :
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## Autres annotations de type de retour { #other-return-type-annotations }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 18.1K bytes
    - Click Count (0)
  8. 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: str | None = None
            foo: ModelB
            tags: dict[str, str] = {}
    
            @field_validator("name")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  9. CHANGELOG/CHANGELOG-1.7.md

    * Bugfix: OpenAPI models may not get group-version-kind extension if kubernetes is vendored in another project (e.g. minikube). Kubectl 1.8 needs this extension to work with those projects. ([#53152](https://github.com/kubernetes/kubernetes/pull/53152), [@mbohlool](https://github.com/mbohlool))
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 308.7K bytes
    - Click Count (1)
  10. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 17.1K bytes
    - Click Count (0)
Back to Top