Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 773 for validations (0.29 sec)

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

        ```
    
    ## Recap
    
    With `Query`, `Path` (and others you haven't seen yet) you can declare metadata and string validations in the same ways as with [Query Parameters and String Validations](query-params-str-validations.md){.internal-link target=_blank}.
    
    And you can also declare numeric validations:
    
    * `gt`: `g`reater `t`han
    * `ge`: `g`reater than or `e`qual
    * `lt`: `l`ess `t`han
    * `le`: `l`ess than or `e`qual
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 01 21:05:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/path-params-numeric-validations.md

    ```
    
    ## Recapitulando
    
    Com `Query`, `Path` (e outras que você ainda não viu) você pode declarar metadados e validações de texto do mesmo modo que com [Parâmetros de consulta e validações de texto](query-params-str-validations.md){.internal-link target=_blank}.
    
    E você também pode declarar validações numéricas:
    
    * `gt`: maior que (`g`reater `t`han)
    * `ge`: maior que ou igual (`g`reater than or `e`qual)
    * `lt`: menor que (`l`ess `t`han)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/query-params-str-validations.md

        "bar"
      ]
    }
    ```
    
    !!! tip
        要声明类型为 `list` 的查询参数,如上例所示,你需要显式地使用 `Query`,否则该参数将被解释为请求体。
    
    交互式 API 文档将会相应地进行更新,以允许使用多个值:
    
    <img src="https://fastapi.tiangolo.com/img/tutorial/query-params-str-validations/image02.png">
    
    ### 具有默认值的查询参数列表 / 多个值
    
    你还可以定义在没有任何给定值时的默认 `list` 值:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial012.py!}
    ```
    
    如果你访问:
    
    ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/query-params-str-validations.md

      ]
    }
    ```
    
    !!! tip "팁"
        위의 예와 같이 `list` 자료형으로 쿼리 매개변수를 선언하려면 `Query`를 명시적으로 사용해야 합니다. 그렇지 않으면 요청 본문으로 해석됩니다.
    
    대화형 API 문서는 여러 값을 허용하도록 수정 됩니다:
    
    <img src="/img/tutorial/query-params-str-validations/image02.png">
    
    ### 쿼리 매개변수 리스트 / 기본값을 사용하는 다중값
    
    그리고 제공된 값이 없으면 기본 `list` 값을 정의할 수도 있습니다:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial012.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 11 13:48:31 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/path-params-numeric-validations.md

    对于 <abbr title="less than"><code>lt</code></abbr> 也是一样的。
    
    ```Python hl_lines="11"
    {!../../../docs_src/path_params_numeric_validations/tutorial006.py!}
    ```
    
    ## 总结
    
    你能够以与 [查询参数和字符串校验](query-params-str-validations.md){.internal-link target=_blank} 相同的方式使用 `Query`、`Path`(以及其他你还没见过的类)声明元数据和字符串校验。
    
    而且你还可以声明数值校验:
    
    * `gt`:大于(`g`reater `t`han)
    * `ge`:大于等于(`g`reater than or `e`qual)
    * `lt`:小于(`l`ess `t`han)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/path-params-numeric-validations.md

    ```Python hl_lines="11"
    {!../../../docs_src/path_params_numeric_validations/tutorial006.py!}
    ```
    
    ## まとめ
    
    `Query`と`Path`(そしてまだ見たことない他のもの)では、[クエリパラメータと文字列の検証](query-params-str-validations.md){.internal-link target=_blank}と同じようにメタデータと文字列の検証を宣言することができます。
    
    また、数値のバリデーションを宣言することもできます:
    
    * `gt`: より大きい(`g`reater `t`han)
    * `ge`: 以上(`g`reater than or `e`qual)
    * `lt`: より小さい(`l`ess `t`han)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 15 15:46:32 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/11-language-change.yml

        validations:
          required: true
    
      - type: textarea
        id: proposal
        attributes:
          label: "Proposal"
          description: "What is the proposed change? Who does this proposal help, and why? Please describe as precisely as possible the change to the language."
        validations:
          required: true
    
      - type: textarea
        id: language-spec-changes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 20:49:24 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/01-pkgsite.yml

        id: url
        attributes:
          label: "What is the URL of the page with the issue?"
        validations:
          required: true
      - type: input
        id: user-agent
        attributes:
          label: "What is your user agent?"
          description: "You can find your user agent here: https://www.google.com/search?q=what+is+my+user+agent"
        validations:
          required: true
      - type: textarea
        id: screenshot
        attributes:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/04-vuln.yml

            DB: https://vuln.go.dev
            DB updated: 2023-11-21 15:39:17 +0000 UTC
        validations:
          required: true
      - type: textarea
        id: reproduce-latest-version
        attributes:
          label: "Does this issue reproduce at the latest version of golang.org/x/vuln?"
        validations:
          required: true
      - type: textarea
        id: go-env
        attributes:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/40_contributor_documentation.yml

            - Missing information
            - Styling or Accessibility
            - Typo (please open a PR instead)
        validations:
          required: true
      - type: textarea
        id: description
        attributes:
          label: Problem description
          description: |
            Please describe the problem as concisely as possible.
        validations:
          required: true
      - type: textarea
        id: context
        attributes:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 10:01:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top