Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 535 for idct (0.02 sec)

  1. tests/test_security_scopes.py

    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(name="call_counter")
    def call_counter_fixture():
        return {"count": 0}
    
    
    @pytest.fixture(name="app")
    def app_fixture(call_counter: dict[str, int]):
        def get_db():
            call_counter["count"] += 1
            return f"db_{call_counter['count']}"
    
        def get_user(db: Annotated[str, Depends(get_db)]):
            return "user"
    
        app = FastAPI()
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1006 bytes
    - Viewed (0)
  2. fastapi/param_functions.py

                "Deprecated in OpenAPI 3.1.0 that now uses JSON Schema 2020-12, "
                "although still supported. Use examples instead."
            ),
        ] = _Unset,
        openapi_examples: Annotated[
            Optional[dict[str, Example]],
            Doc(
                """
                OpenAPI-specific examples.
    
                It will be added to the generated OpenAPI (e.g. visible at `/docs`).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 63K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/additional-responses.md

    Puedes pasar a tus *decoradores de path operation* un parámetro `responses`.
    
    Recibe un `dict`: las claves son los códigos de estado para cada response (como `200`), y los valores son otros `dict`s con la información para cada uno de ellos.
    
    Cada uno de esos `dict`s de response puede tener una clave `model`, conteniendo un modelo de Pydantic, así como `response_model`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/additional-responses.md

    Der nimmt ein <abbr title="Dictionary – Zuordnungstabelle: In anderen Sprachen auch Hash, Map, Objekt, Assoziatives Array genannt">`dict`</abbr> entgegen, die Schlüssel sind Statuscodes für jede Response, wie etwa `200`, und die Werte sind andere `dict`s mit den Informationen für jede Response.
    
    Jedes dieser Response-`dict`s kann einen Schlüssel `model` haben, welcher ein Pydantic-Modell enthält, genau wie `response_model`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/additional-responses.md

    You can pass to your *path operation decorators* a parameter `responses`.
    
    It receives a `dict`: the keys are status codes for each response (like `200`), and the values are other `dict`s with the information for each of them.
    
    Each of those response `dict`s can have a key `model`, containing a Pydantic model, just like `response_model`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md

    # 类作为依赖项
    
    在深入探究 **依赖注入** 系统之前,让我们升级之前的例子。
    
    ## 来自前一个例子的`dict`
    
    在前面的例子中, 我们从依赖项 ("可依赖对象") 中返回了一个 `dict`:
    
    {* ../../docs_src/dependencies/tutorial001_py310.py hl[7] *}
    
    但是后面我们在路径操作函数的参数 `commons` 中得到了一个 `dict`。
    
    我们知道编辑器不能为 `dict` 提供很多支持(比如补全),因为编辑器不知道 `dict` 的键和值类型。
    
    对此,我们可以做的更好...
    
    ## 什么构成了依赖项?
    
    到目前为止,您看到的依赖项都被声明为函数。
    
    但这并不是声明依赖项的唯一方法(尽管它可能是更常见的方法)。
    
    关键因素是依赖项应该是 "可调用对象"。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/body-nested-models.md

    如果你直接使用 `dict` 而不是 Pydantic 模型,那你将无法获得这种编辑器支持。
    
    但是你根本不必担心这两者,传入的字典会自动被转换,你的输出也会自动被转换为 JSON。
    
    ## 任意 `dict` 构成的请求体
    
    你也可以将请求体声明为使用某类型的键和其他类型值的 `dict`。
    
    无需事先知道有效的字段/属性(在使用 Pydantic 模型的场景)名称是什么。
    
    如果你想接收一些尚且未知的键,这将很有用。
    
    ---
    
    其他有用的场景是当你想要接收其他类型的键时,例如 `int`。
    
    这也是我们在接下来将看到的。
    
    在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/CreateBody.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.api.admin.dict.mapping;
    
    import org.codelibs.fess.app.web.admin.dict.mapping.CreateForm;
    
    /**
     * Request body for creating mapping dictionary via REST API.
     * Extends CreateForm to inherit validation and field definitions.
     */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1021 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/constants/SuggestConstants.java

        /** The system property name for user dictionary encoding. */
        public static final String USER_DICT_ENCODING = "fess.user.dict.encoding";
    
        /** The system property name for user dictionary path. */
        public static final String USER_DICT_PATH = "fess.user.dict.path";
    
        /** The text separator. */
        public static final String TEXT_SEPARATOR = " ";
    
        /** The default role for guest users. */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. tests/test_dependency_yield_except_httpexception.py

    
    @app.put("/invalid-user/{user_id}")
    def put_invalid_user(
        user_id: str, name: str = Body(), db: dict = Depends(get_database)
    ):
        db[user_id] = name
        raise HTTPException(status_code=400, detail="Invalid user")
    
    
    @app.put("/user/{user_id}")
    def put_user(user_id: str, name: str = Body(), db: dict = Depends(get_database)):
        db[user_id] = name
        return {"message": "OK"}
    
    
    @pytest.fixture(autouse=True)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 03:29:38 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top