Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Max (0.12 sec)

  1. fastapi/params.py

                gt=gt,
                ge=ge,
                lt=lt,
                le=le,
                min_length=min_length,
                max_length=max_length,
                discriminator=discriminator,
                multiple_of=multiple_of,
                allow_nan=allow_inf_nan,
                max_digits=max_digits,
                decimal_places=decimal_places,
                **extra,
            )
            if examples is not None:
    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)
  2. docs/fr/docs/tutorial/query-params-str-validations.md

    Ensuite, nous pouvons passer d'autres paramètres à `Query`. Dans cet exemple, le paramètre `max_length` qui s'applique aux chaînes de caractères :
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/query-params-str-validations.md

        ```
    
        そして、 `None` を利用することでクエリパラメータが必須ではないと検知します。
    
        `Optional` の部分は、エディターによるより良いサポートを可能にします。
    
    そして、さらに多くのパラメータを`Query`に渡すことができます。この場合、文字列に適用される、`max_length`パラメータを指定します。
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    これにより、データを検証し、データが有効でない場合は明確なエラーを表示し、OpenAPIスキーマの *path operation* にパラメータを記載します。
    
    ## バリデーションをさらに追加する
    
    パラメータ`min_length`も追加することができます:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 10.5K bytes
    - Viewed (1)
  4. docs/em/docs/tutorial/query-params-str-validations.md

         `Union[str, None]` 🍕 ✔ 👆 👨‍🎨 🚚 👻 🐕‍🦺, ✋️ ⚫️ 🚫 ⚫️❔ 💬 FastAPI 👈 👉 🔢 🚫 ✔.
    
    ⤴️, 👥 💪 🚶‍♀️ 🌅 🔢 `Query`. 👉 💼, `max_length` 🔢 👈 ✔ 🎻:
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    👉 🔜 ✔ 📊, 🎦 🆑 ❌ 🕐❔ 📊 🚫 ☑, & 📄 🔢 🗄 🔗 *➡ 🛠️*.
    
    ## 🚮 🌅 🔬
    
    👆 💪 🚮 🔢 `min_length`:
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
    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)
  5. docs/ru/docs/tutorial/query-params-str-validations.md

    Теперь, мы можем указать больше параметров для `Query`. В данном случае, параметр `max_length` применяется к строкам:
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/query-params-str-validations.md

    Jetzt können wir `Query` weitere Parameter übergeben. Fangen wir mit dem `max_length` Parameter an, der auf Strings angewendet wird:
    
    ```Python
    q: Union[str, None] = Query(default=None, max_length=50)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  7. .github/actions/people/app/main.py

                        author_time = discussion_commentors.get(
                            comment.author.login, comment.createdAt
                        )
                        discussion_commentors[comment.author.login] = max(
                            author_time, comment.createdAt
                        )
                for reply in comment.replies.nodes:
                    if reply.author:
                        authors[reply.author.login] = reply.author
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. docs/en/docs/tutorial/query-params-str-validations.md

    But now, having `Query(max_length=50)` inside of `Annotated`, we are telling FastAPI that we want it to extract this value from the query parameters (this would have been the default anyway 🤷) and that we want to have **additional validation** for this value (that's why we do this, to get the additional validation). 😎
    
    FastAPI will now:
    
    * **Validate** the data making sure that the max length is 50 characters
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  9. tests/test_path.py

                        "loc": ["path", "item_id"],
                        "msg": "String should have at most 3 characters",
                        "input": "foobar",
                        "ctx": {"max_length": 3},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 34.4K bytes
    - Viewed (0)
Back to top