Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Othman (0.22 sec)

  1. docs/zh/docs/tutorial/path-params-numeric-validations.md

    使用 `Query` 和 `Path`(以及你将在后面看到的其他类)可以声明字符串约束,但也可以声明数值约束。
    
    像下面这样,添加 `ge=1` 后,`item_id` 将必须是一个大于(`g`reater than)或等于(`e`qual)`1` 的整数。
    
    ```Python hl_lines="8"
    {!../../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## 数值校验:大于和小于等于
    
    同样的规则适用于:
    
    * `gt`:大于(`g`reater `t`han)
    * `le`:小于等于(`l`ess than or `e`qual)
    
    ```Python hl_lines="9"
    {!../../../docs_src/path_params_numeric_validations/tutorial005.py!}
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/path-params-numeric-validations.md

    `0.5` wäre also ein gültiger Wert, aber nicht `0.0` oder `0`.
    
    Das gleiche gilt für <abbr title="less than – kleiner als"><code>lt</code></abbr>.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:59:29 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/path-params-numeric-validations.md

    Aqui é onde se torna importante a possibilidade de declarar <abbr title="greater than"><code>gt</code></abbr> e não apenas <abbr title="greater than or equal"><code>ge</code></abbr>. Com isso você pode especificar, por exemplo, que um valor deve ser maior que `0`, ainda que seja menor que `1`.
    
    Assim, `0.5` seria um valor válido. Mas `0.0` ou `0` não seria.
    
    E o mesmo para <abbr title="less than"><code>lt</code></abbr>.
    
    ```Python hl_lines="11"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/path-params-numeric-validations.md

    Таким образом, `0.5` будет корректным значением. А `0.0` или `0` — нет.
    
    То же самое справедливо и для <abbr title="less than"><code>lt</code></abbr>.
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/path-params-numeric-validations.md

        ```
    
    ## Number validations: floats, greater than and less than
    
    Number validations also work for `float` values.
    
    Here's where it becomes important to be able to declare <abbr title="greater than"><code>gt</code></abbr> and not just <abbr title="greater than or equal"><code>ge</code></abbr>. As with it you can require, for example, that a value must be greater than `0`, even if it is less than `1`.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/path-params-numeric-validations.md

    また、数値のバリデーションを宣言することもできます:
    
    * `gt`: より大きい(`g`reater `t`han)
    * `ge`: 以上(`g`reater than or `e`qual)
    * `lt`: より小さい(`l`ess `t`han)
    * `le`: 以下(`l`ess than or `e`qual)
    
    !!! info "情報"
        `Query`、`Path`などは後に共通の`Param`クラスのサブクラスを見ることになります。(使う必要はありません)
    
        そして、それらすべては、これまで見てきた追加のバリデーションとメタデータと同じパラメータを共有しています。
    
    !!! note "技術詳細"
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Jan 15 15:46:32 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top