- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 132 for maxlength (0.07 seconds)
-
docs_src/body_fields/tutorial001_py310.py
from pydantic import BaseModel, Field app = FastAPI() class Item(BaseModel): name: str description: str | None = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None @app.put("/items/{item_id}")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 523 bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Longs.java
* @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative * @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static long[] ensureCapacity(long[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 22 18:14:49 GMT 2025 - 29K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial010_py310.py
default=None, alias="item-query", title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, max_length=50, pattern="^fixedquery$", deprecated=True, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 542 bytes - Click Count (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
有了 `Annotated` 之后,我们就可以放入更多信息(本例中是额外的校验)。在 `Annotated` 中添加 `Query`,并把参数 `max_length` 设为 `50`: {* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[9] *} 注意默认值依然是 `None`,所以该参数仍是可选的。 但现在把 `Query(max_length=50)` 放到 `Annotated` 里,我们就在告诉 FastAPI,这个值需要**额外校验**,最大长度为 50 个字符。😎 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 15.4K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Ints.java
* @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative * @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static int[] ensureCapacity(int[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 31.3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Floats.java
* @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative * @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static float[] ensureCapacity(float[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 25.6K bytes - Click Count (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
{* ../../docs_src/query_params_str_validations/tutorial002_an_py310.py hl[9] *} Remarquez que la valeur par défaut est toujours `None`, donc le paramètre est toujours optionnel.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 19K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java
assertThat(set.needsAllocArrays()).isTrue(); assertThat(set.elements).isNull(); set.add(1); assertThat(set.needsAllocArrays()).isFalse(); assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE); } public void testAllocArraysExpectedSize() { for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) { CompactHashSet<Integer> set = CompactHashSet.createWithExpectedSize(i);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Doubles.java
* @throws IllegalArgumentException if {@code minLength} or {@code padding} is negative * @return an array containing the values of {@code array}, with guaranteed minimum length {@code * minLength} */ public static double[] ensureCapacity(double[] array, int minLength, int padding) { checkArgument(minLength >= 0, "Invalid minLength: %s", minLength); checkArgument(padding >= 0, "Invalid padding: %s", padding);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 27.8K bytes - Click Count (0) -
.idea/inspectionProfiles/Gradle.xml
<option name="m_minLength" value="2" /> <option name="m_maxLength" value="999" /> </extension> <extension name="StaticMethodNamingConvention" enabled="true"> <option name="m_regex" value="[a-z][A-Za-z\d]*" /> <option name="m_minLength" value="2" /> <option name="m_maxLength" value="999" /> </extension> </inspection_tool>
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Jun 26 21:49:47 GMT 2024 - 15.4K bytes - Click Count (0)