Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for nilable (0.15 sec)

  1. fastapi/applications.py

                bool,
                Doc(
                    """
                    To disable automatically generating the URLs in the `servers` field
                    in the autogenerated OpenAPI using the `root_path`.
    
                    Read more about it in the
                    [FastAPI docs for Behind a Proxy](https://fastapi.tiangolo.com/advanced/behind-a-proxy/#disable-automatic-server-from-root_path).
    
                    **Example**
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/configure-swagger-ui.md

    ## Disable Syntax Highlighting
    
    For example, you could disable syntax highlighting in Swagger UI.
    
    Without changing the settings, syntax highlighting is enabled by default:
    
    <img src="/img/tutorial/extending-openapi/image02.png">
    
    But you can disable it by setting `syntaxHighlight` to `False`:
    
    ```Python hl_lines="3"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/custom-docs-ui-assets.md

    This could be useful if for example you live in a country that restricts some URLs.
    
    ### Disable the automatic docs
    
    The first step is to disable the automatic docs, as by default, those use the default CDN.
    
    To disable them, set their URLs to `None` when creating your `FastAPI` app:
    
    ```Python hl_lines="8"
    {!../../../docs_src/custom_docs_ui/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        from docs_src.conditional_openapi import tutorial001
    
        importlib.reload(tutorial001)
    
        client = TestClient(tutorial001.app)
        return client
    
    
    @needs_pydanticv2
    def test_disable_openapi(monkeypatch):
        monkeypatch.setenv("OPENAPI_URL", "")
        # Load the client after setting the env var
        client = get_client()
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  5. docs/zh/docs/deployment/deta.md

    文档显示如下:
    
    <img src="/img/deployment/deta/image01.png">
    
    ## 启用公开访问
    
    默认情况下,Deta 使用您的账号 Cookies 处理身份验证。
    
    应用一切就绪之后,使用如下命令让公众也能看到您的应用:
    
    <div class="termy">
    
    ```console
    $ deta auth disable
    
    Successfully disabled http auth
    ```
    
    </div>
    
    现在,就可以把 URL 分享给大家,他们就能访问您的 API 了。🚀
    
    ## HTTPS
    
    恭喜!您已经在 Deta 上部署了 FastAPI 应用!🎉 🍰
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sun Jan 28 18:06:55 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/header-params.md

    So, you can use `user_agent` as you normally would in Python code, instead of needing to capitalize the first letters as `User_Agent` or something similar.
    
    If for some reason you need to disable automatic conversion of underscores to hyphens, set the parameter `convert_underscores` of `Header` to `False`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="10"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. docs/en/docs/how-to/separate-openapi-schemas.md

    In that case, you can disable this feature in **FastAPI**, with the parameter `separate_input_output_schemas=False`.
    
    !!! info
        Support for `separate_input_output_schemas` was added in FastAPI `0.102.0`. 🤓
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  8. fastapi/dependencies/utils.py

        get_annotation_from_field_info,
        get_missing_field_error,
        is_bytes_field,
        is_bytes_sequence_field,
        is_scalar_field,
        is_scalar_sequence_field,
        is_sequence_field,
        is_uploadfile_or_nonable_uploadfile_annotation,
        is_uploadfile_sequence_annotation,
        lenient_issubclass,
        sequence_types,
        serialize_sequence_value,
        value_is_sequence,
    )
    from fastapi.background import BackgroundTasks
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. fastapi/_compat.py

        def is_scalar_sequence_field(field: ModelField) -> bool:
            return field_annotation_is_scalar_sequence(field.field_info.annotation)
    
        def is_bytes_field(field: ModelField) -> bool:
            return is_bytes_or_nonable_bytes_annotation(field.type_)
    
        def is_bytes_sequence_field(field: ModelField) -> bool:
            return is_bytes_sequence_annotation(field.type_)
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
Back to top