- Sort Score
- Result 10 results
- Languages All
Results 771 - 780 of 1,097 for asdict (0.09 sec)
-
docs/ja/docs/tutorial/body-nested-models.md
以下のようにリストの中の項目でも: <img src="https://fastapi.tiangolo.com/img/tutorial/body-nested-models/image01.png"> Pydanticモデルではなく、`dict`を直接使用している場合はこのようなエディタのサポートは得られません。 しかし、それらについて心配する必要はありません。入力された辞書は自動的に変換され、出力も自動的にJSONに変換されます。 ## 任意の`dict`のボディ また、ある型のキーと別の型の値を持つ`dict`としてボディを宣言することもできます。 有効なフィールド・属性名を事前に知る必要がありません(Pydanticモデルの場合のように)。 これは、まだ知らないキーを受け取りたいときに便利だと思います。 ---
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/metrics/v3.md
### Audit metrics Metrics about the MinIO audit functionality. | Path | Description | |----------|-----------------------------------------| | `/audit` | Metrics related to audit functionality. | #### `/audit`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Aug 02 22:30:11 UTC 2024 - 45.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
byte[] bytes = HashTestUtils.ascii(input); String toString = "name"; HashFunction func = new ChecksumHashFunction(supplier, 32, toString); assertEquals(expected, func.hashBytes(bytes).asInt()); assertEquals(toString, func.toString()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 30 14:33:12 UTC 2018 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT; import static java.lang.Math.max; import static java.util.Arrays.asList; import static java.util.Arrays.sort; import static java.util.Collections.unmodifiableList; import com.google.common.annotations.GwtCompatible; import com.google.common.math.IntMath; import java.math.RoundingMode;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.1K bytes - Viewed (0) -
docs_src/response_model/tutorial003_05.py
from fastapi import FastAPI, Response from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal", response_model=None) async def get_portal(teleport: bool = False) -> Union[Response, dict]: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 405 bytes - Viewed (0) -
docs_src/body/tutorial002_py310.py
name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.dict() if item.tax: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 429 bytes - Viewed (0) -
docs_src/body/tutorial004_py310.py
price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, q: str | None = None): result = {"item_id": item_id, **item.dict()} if q: result.update({"q": q})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Jan 09 14:28:58 UTC 2024 - 408 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
// 256 characters long assertEquals(3500507768004279527L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8))); } public void testStringsConsistency() { for (String s : Arrays.asList("", "some", "test", "strings", "to", "try")) { assertEquals(HASH_FN.newHasher().putUnencodedChars(s).hash(), HASH_FN.hashUnencodedChars(s)); } } public void testUtf8() { char[] charsA = new char[128];
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java
return phaseToLifecycleMap; } /** * Returns an ordered list of lifecycles */ public List<Lifecycle> getLifeCycles() { List<String> lifecycleIds = Arrays.asList(STANDARD_LIFECYCLES); Comparator<String> comparator = (l, r) -> { int lx = lifecycleIds.indexOf(l); int rx = lifecycleIds.indexOf(r); if (lx < 0 || rx < 0) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.6K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultModelResolverTest.java
getContainer().lookup(ArtifactResolver.class), getContainer().lookup(VersionRangeResolver.class), getContainer().lookup(RemoteRepositoryManager.class), Arrays.asList(newTestRepository())); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.6K bytes - Viewed (0)