- Sort Score
- Num 10 results
- Language All
Results 351 - 360 of 2,076 for none (0.03 seconds)
-
docs/zh/docs/tutorial/body-multiple-params.md
首先,毫无疑问地,你可以随意地混合使用 `Path`、`Query` 和请求体参数声明,**FastAPI** 会知道该如何处理。 你还可以通过将默认值设置为 `None` 来将请求体参数声明为可选参数: {* ../../docs_src/body_multiple_params/tutorial001_an_py310.py hl[18:20] *} /// note | 注意 请注意,在这种情况下,将从请求体获取的 `item` 是可选的。因为它的默认值为 `None`。 /// ## 多个请求体参数 { #multiple-body-parameters } 在上面的示例中,*路径操作*将期望一个具有 `Item` 的属性的 JSON 请求体,就像: ```JSON {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 4.9K bytes - Click Count (0) -
tests/test_filter_pydantic_sub_model_pv2.py
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") def lower_username(cls, name: str, info: ValidationInfo): if not name.endswith("A"):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) -
api/maven-api-core/src/main/java/org/apache/maven/api/ArtifactCoordinates.java
* {@return the identifier of the artifact}. */ @Nonnull String getArtifactId(); /** * Returns the classifier of the artifact. * * @return the classifier or an empty string if none, never {@code null} */ @Nonnull String getClassifier(); /** * {@return the specific version, range of versions, or meta-version of the artifact}.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jun 26 07:56:58 GMT 2025 - 2.8K bytes - Click Count (0) -
docs/ja/docs/tutorial/sql-databases.md
これでヒーローの正体は守られます!🥷 また、`id: int` を再宣言します。これにより、API クライアントとの間で「常に `id` が存在し、`int` である(`None` にはならない)」という契約を結びます。 /// tip | 豆知識 戻り値のモデルで、値が常に存在し常に `int`(`None` ではない)であることを保証すると、API クライアント側のコードははるかにシンプルに書けます。 加えて、自動生成クライアントのインターフェースも簡潔になり、あなたの API とやり取りする開発者体験が向上します。😎 /// `HeroPublic` のフィールドは `HeroBase` と同じで、`id` は `int`(`None` ではない)として宣言されます: * `id` * `name` * `age`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 18K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 12K bytes - Click Count (0) -
docs/en/docs/tutorial/query-params.md
## Optional parameters { #optional-parameters } The same way, you can declare optional query parameters, by setting their default to `None`: {* ../../docs_src/query_params/tutorial002_py310.py hl[7] *} In this case, the function parameter `q` will be optional, and will be `None` by default. /// checkCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/ja/docs/tutorial/metadata.md
OpenAPIスキーマを完全に無効にする場合は、`openapi_url=None` を設定できます。これにより、それを使用するドキュメントUIも無効になります。 ## ドキュメントのURL { #docs-urls } 含まれている2つのドキュメントUIを設定できます: * **Swagger UI**: `/docs` で提供されます。 * URL はパラメータ `docs_url` で設定できます。 * `docs_url=None` を設定することで無効にできます。 * **ReDoc**: `/redoc` で提供されます。 * URL はパラメータ `redoc_url` で設定できます。 * `redoc_url=None` を設定することで無効にできます。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 6.9K bytes - Click Count (0) -
scripts/playwright/separate_openapi_schemas/image01.py
import subprocess from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 974 bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/metadata.md
{* ../../docs_src/metadata/tutorial002_py310.py hl[3] *} 如果你想完全停用 OpenAPI 綱要,可以設定 `openapi_url=None`,同時也會停用依賴它的文件使用者介面。 ## 文件 URL { #docs-urls } 你可以設定內建的兩個文件使用者介面: * Swagger UI:提供於 `/docs`。 * 可用 `docs_url` 參數設定其 URL。 * 設定 `docs_url=None` 可停用。 * ReDoc:提供於 `/redoc`。 * 可用 `redoc_url` 參數設定其 URL。 * 設定 `redoc_url=None` 可停用。 例如,將 Swagger UI 提供於 `/documentation`,並停用 ReDoc:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 5.6K bytes - Click Count (0) -
scripts/playwright/separate_openapi_schemas/image04.py
import subprocess from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 1K bytes - Click Count (0)