Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for include_in_schema (0.17 sec)

  1. docs_src/query_params_str_validations/tutorial014.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Union[str, None] = Query(default=None, include_in_schema=False),
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 330 bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial014_an.py

    from fastapi import FastAPI, Query
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Annotated[Union[str, None], Query(include_in_schema=False)] = None,
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 373 bytes
    - Viewed (0)
  3. fastapi/applications.py

                default_response_class=default_response_class,
                dependencies=dependencies,
                callbacks=callbacks,
                deprecated=deprecated,
                include_in_schema=include_in_schema,
                responses=responses,
                generate_unique_id_function=generate_unique_id_function,
            )
            self.exception_handlers: Dict[
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  4. docs/ja/docs/advanced/path-operation-advanced-configuration.md

    /// warning | "注意"
    
    この方法をとる場合、各 *path operation関数* が一意な名前である必要があります。
    
    それらが異なるモジュール (Pythonファイル) にあるとしてもです。
    
    ///
    
    ## OpenAPIから除外する
    
    生成されるOpenAPIスキーマ (つまり、自動ドキュメント生成の仕組み) から *path operation* を除外するには、 `include_in_schema` パラメータを `False` にします。
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## docstringによる説明の高度な設定
    
    *path operation関数* のdocstringからOpenAPIに使用する行を制限することができます。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    ```
    
    /// tip
    
    如果你手动调用 `app.openapi()`,你应该在此之前更新 `operationId`。
    
    ///
    
    /// warning
    
    如果你这样做,务必确保你的每个 *路径操作函数* 的名字唯一。
    
    即使它们在不同的模块中(Python 文件)。
    
    ///
    
    ## 从 OpenAPI 中排除
    
    使用参数 `include_in_schema` 并将其设置为 `False` ,来从生成的 OpenAPI 方案中排除一个 *路径操作*(这样一来,就从自动化文档系统中排除掉了)。
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## docstring 的高级描述
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. docs/es/docs/advanced/path-operation-advanced-configuration.md

    ///
    
    ## Excluir de OpenAPI
    
    Para excluir una *operación de path* del esquema OpenAPI generado (y por tanto del la documentación generada automáticamente), usa el parámetro `include_in_schema` y asigna el valor como `False`;
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## Descripción avanzada desde el docstring
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. fastapi/openapi/utils.py

        for param_type, param_group in parameter_groups:
            for param in param_group:
                field_info = param.field_info
                # field_info = cast(Param, field_info)
                if not getattr(field_info, "include_in_schema", True):
                    continue
                param_schema = get_schema_from_model_field(
                    field=param,
                    schema_generator=schema_generator,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/path-operation-advanced-configuration.md

    ///
    
    ## Exclude from OpenAPI
    
    To exclude a *path operation* from the generated OpenAPI schema (and thus, from the automatic documentation systems), use the parameter `include_in_schema` and set it to `False`:
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## Advanced description from docstring
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    ///
    
    ## Exclusion d'OpenAPI
    
    Pour exclure un *chemin* du schéma OpenAPI généré (et donc des systèmes de documentation automatiques), utilisez le paramètre `include_in_schema` et assignez-lui la valeur `False` :
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## Description avancée de docstring
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/path-operation-advanced-configuration.md

    ///
    
    ## Von OpenAPI ausschließen
    
    Um eine *Pfadoperation* aus dem generierten OpenAPI-Schema (und damit aus den automatischen Dokumentationssystemen) auszuschließen, verwenden Sie den Parameter `include_in_schema` und setzen Sie ihn auf `False`:
    
    ```Python hl_lines="6"
    {!../../docs_src/path_operation_advanced_configuration/tutorial003.py!}
    ```
    
    ## Fortgeschrittene Beschreibung mittels Docstring
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top