- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 1,443 for descriptions (0.15 sec)
-
docs_src/body_nested_models/tutorial007_py310.py
class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() images: list[Image] | None = None class Offer(BaseModel): name: str description: str | None = None price: float items: list[Item] @app.post("/offers/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 520 bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model/app_pv1.py
from pydantic import BaseModel, validator app = FastAPI() class ModelB(BaseModel): username: str class ModelC(ModelB): password: str class ModelA(BaseModel): name: str description: Optional[str] = None model_b: ModelB @validator("name") def lower_username(cls, name: str, values): if not name.endswith("A"): raise ValueError("name must end in A")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 784 bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy
* * Instead, we'll encode the path to the file in the description data field, as a link. This is * useful regardless of this renderer's needs, since now there will be a link embedded in the report * to quickly open the changes file. By then we can also regex that path out of the description * in order to create a changes {@link File} for further use in this class. *
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Feb 07 20:38:43 UTC 2023 - 7.2K bytes - Viewed (0) -
docs_src/path_operation_configuration/tutorial004_py310.py
class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name - **description**: a long description - **price**: required
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 638 bytes - Viewed (0) -
docs_src/dependencies/tutorial008b_an.py
from fastapi import Depends, FastAPI, HTTPException from typing_extensions import Annotated app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Dec 26 20:37:34 UTC 2023 - 785 bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 824 bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/00-bug.yml
attributes: label: "What did you do?" description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best." validations: required: true - type: textarea id: actual-behavior attributes: label: "What did you see happen?"
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 04 23:31:17 UTC 2024 - 3.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/MethodTableRenderer.java
td = document.createElement("td"); tr.appendChild(td); td.appendChild(document.createTextNode("Description")); for (MethodDoc methodDoc : methods) { // <tr> // <td><literal><link linkend="$id">$name</link>$signature</literal></td> // <td>$description</td> // </tr> tr = document.createElement("tr"); parent.appendChild(tr);
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 3.3K bytes - Viewed (0) -
.github/workflows/notify-translations.yml
name: Notify Translations on: pull_request_target: types: - labeled - closed workflow_dispatch: inputs: number: description: PR number required: true debug_enabled: description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' required: false default: 'false' permissions: discussions: write
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 12:27:19 UTC 2024 - 1.4K bytes - Viewed (0) -
docs_src/body_updates/tutorial001_py39.py
class Item(BaseModel): name: Union[str, None] = None description: Union[str, None] = None price: Union[float, None] = None tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2}, "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []}, }
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 900 bytes - Viewed (0)