Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 562 for extras (0.09 sec)

  1. docs/zh-hant/docs/tutorial/query-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/query-param-models/image01.png">
    </div>
    
    ## 禁止額外的查詢參數
    
    在一些特殊的使用場景中(可能不是很常見),你可能希望**限制**你要收到的查詢參數。
    
    你可以使用 Pydantic 的模型設定來 `forbid`(禁止)任何 `extra`(額外)欄位:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    如果客戶端嘗試在**查詢參數**中發送一些**額外的**資料,他們將會收到一個**錯誤**回應。
    
    例如,如果客戶端嘗試發送一個值為 `plumbus` 的 `tool` 查詢參數,如:
    
    ```http
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Nov 27 22:14:10 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/simple-oauth2.md

        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info
    
    For a more complete explanation of `**user_dict` check back in [the documentation for **Extra Models**](../extra-models.md#about-user-in-dict){.internal-link target=_blank}.
    
    ///
    
    ## Return the token { #return-the-token }
    
    The response of the `token` endpoint must be a JSON object.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    // appropriate length.
    func formatPAXRecord(k, v string) (string, error) {
    	if !validPAXRecord(k, v) {
    		return "", ErrHeader
    	}
    
    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/security/index.md

    # Seguridad Avanzada
    
    ## Funcionalidades Adicionales
    
    Hay algunas funcionalidades extra para manejar la seguridad aparte de las cubiertas en el [Tutorial - Guía del Usuario: Seguridad](../../tutorial/security/index.md){.internal-link target=_blank}.
    
    /// tip | Consejo
    
    Las siguientes secciones **no son necesariamente "avanzadas"**.
    
    Y es posible que para tu caso de uso, la solución esté en una de ellas.
    
    ///
    
    ## Lee primero el Tutorial
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 699 bytes
    - Viewed (0)
  5. docs/en/overrides/partials/copyright.html

        <div class="md-copyright__highlight">
            The FastAPI trademark is owned by <a href="https://tiangolo.com" target="_blank">@tiangolo</a> and is registered in the US and across other regions
        </div>
        {% if not config.extra.generator == false %}
        Made with
        <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
            Material for MkDocs
        </a>
        {% endif %}
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Feb 04 20:56:59 UTC 2024
    - 450 bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/InetAddresses.java

            if (hasSkip) {
              return null; // Can't have more than one ::
            }
            hasSkip = true;
            partsSkipped++; // :: means we skipped an extra part in between the two delimiters.
            if (i == 0) {
              partsSkipped++; // Begins with ::, so we skipped the part preceding the first :
            }
            if (i == ipString.length() - 2) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/query-param-models.md

    <div class="screenshot">
    <img src="/img/tutorial/query-param-models/image01.png">
    </div>
    
    ## 余分なクエリパラメータを禁止する
    
    特定の(あまり一般的ではないかもしれない)ケースで、受け付けるクエリパラメータを**制限**する必要があるかもしれません。
    
    Pydanticのモデルの Configuration を利用して、 `extra` フィールドを `forbid` とすることができます。
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    もしクライアントが**クエリパラメータ**として**余分な**データを送ろうとすると、**エラー**レスポンスが返されます。
    
    例えば、クライアントがクエリパラメータ `tool` に、値 `plumbus` を設定して送ろうとすると:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 28 14:18:46 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/testing/Flaky.kt

     * limitations under the License.
     */
    package okhttp3.testing
    
    @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
    @Retention(AnnotationRetention.RUNTIME)
    /**
     * Annotation marking a test as flaky, and requires extra logging and linking against
     * a known github issue.  This does not ignore the failure.
     */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 902 bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/body-fields.md

    Sie werden später mehr darüber lernen, wie man zusätzliche Information unterbringt, wenn Sie lernen, Beispiele zu deklarieren.
    
    /// warning | Achtung
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/body-updates.md

    Para distinguir entre los modelos con todos los valores opcionales para **actualizaciones** y modelos con valores requeridos para **creación**, puedes utilizar las ideas descritas en [Modelos Extra](extra-models.md){.internal-link target=_blank}.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top