- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 80 for friends (0.15 sec)
-
docs/en/docs/tutorial/response-model.md
### Type Annotations and Tooling First let's see how editors, mypy and other tools would see this. `BaseUser` has the base fields. Then `UserIn` inherits from `BaseUser` and adds the `password` field, so, it will include all the fields from both models. We annotate the function return type as `BaseUser`, but we are actually returning a `UserIn` instance.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
tests/test_compat.py
_get_model_config, is_bytes_sequence_annotation, is_uploadfile_sequence_annotation, ) from fastapi.testclient import TestClient from pydantic import BaseConfig, BaseModel, ConfigDict from pydantic.fields import FieldInfo from .utils import needs_pydanticv1, needs_pydanticv2 @needs_pydanticv2 def test_model_field_default_required(): # For coverage field_info = FieldInfo(annotation=str)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 2.8K bytes - Viewed (0) -
docs/em/docs/tutorial/query-params-str-validations.md
!!! tip Pydantic, โ โซ๏ธโ ๐๏ธ ๐ ๐ฝ ๐ฌ & ๐ ๏ธ FastAPI, โ๏ธ ๐ ๐ญ ๐โ ๐ โ๏ธ `Optional` โ๏ธ `Union[Something, None]` ๐ต ๐ข ๐ฒ, ๐ ๐ช โ ๐ ๐ โซ๏ธ Pydantic ๐ฉบ ๐ <a href="https://docs.pydantic.dev/latest/concepts/models/#required-optional-fields" class="external-link" target="_blank">โ ๐ฆ ๐</a>. ### โ๏ธ Pydantic `Required` โฉ๏ธ โ (`...`) ๐ฅ ๐ ๐ญ ๐ฌ โ๏ธ `...`, ๐ ๐ช ๐ & โ๏ธ `Required` โช๏ธโก๏ธ Pydantic: ```Python hl_lines="2 8"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.9K bytes - Viewed (0) -
fastapi/params.py
import warnings from enum import Enum from typing import Any, Callable, Dict, List, Optional, Sequence, Union from fastapi.openapi.models import Example from pydantic.fields import FieldInfo from typing_extensions import Annotated, deprecated from ._compat import PYDANTIC_V2, PYDANTIC_VERSION, Undefined _Unset: Any = Undefined class ParamTypes(Enum): query = "query" header = "header" path = "path"
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 27.5K bytes - Viewed (1) -
docs/en/docs/alternatives.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K bytes - Viewed (0) -
docs/it/docs/index.md
**Spoiler alert**: il tutorial - Guida Utente include: * Dichiarazione di **parameters** da altri posti diversi come: **headers**, **cookies**, **form fields** e **files**. * Come stabilire **vincoli di validazione** come `maximum_length` o `regex`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 23:58:47 GMT 2024 - 19.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-fields.md
=== "Python 3.10+" ```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001_an_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001_an.py!} ``` === "Python 3.10+ Annotated๊ฐ ์๋ ๊ฒฝ์ฐ" !!! tip "ํ"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-fields.md
ใพใใไปฅไธใฎใใใซใคใณใใผใใใพใ: ```Python hl_lines="4" {!../../../docs_src/body_fields/tutorial001.py!} ``` !!! warning "ๆณจๆ" `Field`ใฏไปใฎๅ จใฆใฎใใฎ๏ผ`Query`ใ`Path`ใ`Body`ใชใฉ๏ผใจใฏ้ใใ`fastapi`ใใใงใฏใชใใ`pydantic`ใใ็ดๆฅใคใณใใผใใใใฆใใใใจใซๆณจๆใใฆใใ ใใใ ## ใขใใซใฎๅฑๆงใฎๅฎฃ่จ ไปฅไธใฎใใใซ`Field`ใใขใใซใฎๅฑๆงใจใใฆไฝฟ็จใใใใจใใงใใพใ: ```Python hl_lines="11 12 13 14" {!../../../docs_src/body_fields/tutorial001.py!} ``` `Field`ใฏ`Query`ใ`Path`ใ`Body`ใจๅใใใใซๅไฝใใๅ จใๅๆงใฎใใฉใกใผใฟใชใฉใๆใกใพใใ
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 15 15:33:28 GMT 2024 - 2.5K bytes - Viewed (0) -
docs/en/docs/release-notes.md
### Changes * There are **new parameter** fields supported by Pydantic `Field()` for: * `Path()` * `Query()` * `Header()` * `Cookie()` * `Body()` * `Form()` * `File()` * The new parameter fields are: * `default_factory` * `alias_priority` * `validation_alias`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1) -
docs/en/docs/tutorial/request-forms-and-files.md
``` The files and form fields will be uploaded as form data and you will receive the files and form fields. And you can declare some of the files as `bytes` and some as `UploadFile`. !!! warning
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 2K bytes - Viewed (0)