Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 615 for extras (0.06 seconds)

  1. 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` を設定して送ろうとすると:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Feb 28 14:18:46 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/cookie-param-models.md

    在某些特殊使用情况下(可能并不常见),您可能希望**限制**您想要接收的 cookie。
    
    您的 API 现在可以控制自己的 <abbr title="顺带一提,这是一个笑话。它与 cookie 同意无关,但现在连API都能拒绝那些可怜的 cookie,真是太有意思了。来,吃块小饼干(cookie)吧。🍪">cookie 同意</abbr>。🤪🍪
    
    您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段:
    
    {* ../../docs_src/cookie_param_models/tutorial002_an_py39.py hl[10] *}
    
    如果客户尝试发送一些**额外的 cookie**,他们将收到**错误**响应。
    
    可怜的 cookie 通知条,费尽心思为了获得您的同意,却被<abbr title="这又是一个笑话,别管我了,给您的小饼干(cookie)配上点咖啡吧。☕">API 拒绝了</abbr>。🍪
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 10 20:38:03 GMT 2024
    - 3K bytes
    - Click Count (0)
  3. docs_src/query_param_models/tutorial002_py39.py

    from typing import Literal
    
    from fastapi import FastAPI, Query
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class FilterParams(BaseModel):
        model_config = {"extra": "forbid"}
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: list[str] = []
    
    
    @app.get("/items/")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 462 bytes
    - Click Count (0)
  4. docs/de/docs/tutorial/body-fields.md

    ///
    
    ## Zusätzliche Information hinzufügen { #add-extra-information }
    
    Sie können zusätzliche Information in `Field`, `Query`, `Body`, usw. deklarieren. Und es wird im generierten JSON-Schema untergebracht.
    
    Sie werden später mehr darüber lernen, wie man zusätzliche Information unterbringt, wenn Sie lernen, Beispiele zu deklarieren.
    
    /// warning | Achtung
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            public Map<String, String> extraInterpolationSource() {
                Map<String, String> extra = new HashMap<>();
                extra.put("session.topDirectory", topDirectory.toString());
                if (rootDirectory != null) {
                    extra.put("session.rootDirectory", rootDirectory.toString());
                }
                return extra;
            }
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/body-updates.md

    To distinguish from the models with all optional values for **updates** and models with required values for **creation**, you can use the ideas described in [Extra Models](extra-models.md){.internal-link target=_blank}.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  7. helm/minio/templates/deployment.yaml

                  {{- if and .Values.persistence.enabled .Values.persistence.subPath }}
                  subPath: "{{ .Values.persistence.subPath }}"
                  {{- end }}
                {{- if .Values.extraSecret }}
                - name: extra-secret
                  mountPath: "/tmp/minio-config-env"
                {{- end }}
                {{- include "minio.tlsKeysVolumeMount" . | indent 12 }}
                {{- if .Values.extraVolumeMounts }}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Oct 10 15:48:31 GMT 2024
    - 8.6K bytes
    - Click Count (0)
  8. docs/es/docs/advanced/security/index.md

    # Seguridad Avanzada { #advanced-security }
    
    ## Funcionalidades Adicionales { #additional-features }
    
    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.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 786 bytes
    - Click Count (0)
  9. docs/en/docs/advanced/security/oauth2-scopes.md

    ///
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[5,141,172] *}
    
    /// info | Technical Details
    
    `Security` is actually a subclass of `Depends`, and it has just one extra parameter that we'll see later.
    
    But by using `Security` instead of `Depends`, **FastAPI** will know that it can declare security scopes, use them internally, and document the API with OpenAPI.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 10:49:48 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. 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.
     */
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 902 bytes
    - Click Count (0)
Back to Top