- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 442 for models (0.04 seconds)
-
docs/fr/docs/python-types.md
* `int` * `float` * `bool` * `bytes` {* ../../docs_src/python_types/tutorial005_py310.py hl[1] *} ### Module `typing` { #typing-module } Pour certains cas d'utilisation supplémentaires, vous pourriez avoir besoin d'importer certains éléments depuis le module standard `typing`, par exemple lorsque vous voulez déclarer que quelque chose a « n'importe quel type », vous pouvez utiliser `Any` depuis `typing` :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) -
docs/ko/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:06:26 GMT 2026 - 11.1K bytes - Click Count (0) -
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) -
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) -
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) -
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) -
docs/fr/docs/tutorial/response-model.md
/// ## Ajouter un modèle de sortie { #add-an-output-model } Nous pouvons à la place créer un modèle d'entrée avec le mot de passe en clair et un modèle de sortie sans celui-ci : {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *} Ici, même si notre *fonction de chemin d'accès* renvoie le même utilisateur d'entrée qui contient le mot de passe :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) -
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) -
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) -
tests/test_filter_pydantic_sub_model_pv2.py
return name async def get_model_c() -> ModelC: return ModelC(username="test-user", password="test-password") @app.get("/model/{name}", response_model=ModelA) async def get_model_a(name: str, model_c=Depends(get_model_c)): return { "name": name, "description": "model-a-desc", "foo": model_c, "tags": {"key1": "value1", "key2": "value2"}, }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)