Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 276 for default (0.2 sec)

  1. tests/test_operations_signatures.py

                assert param.annotation == router_param.annotation
                assert param.annotation == app_param.annotation
                assert param.default == router_param.default
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon May 27 12:08:13 GMT 2019
    - 934 bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/query-params-str-validations.md

    Sprich:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ... macht den Parameter optional, mit dem Defaultwert `None`, genauso wie:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_security/test_tutorial005_an.py

                            "username": {"title": "Username", "type": "string"},
                            "password": {"title": "Password", "type": "string"},
                            "scope": {"title": "Scope", "type": "string", "default": ""},
                            "client_id": IsDict(
                                {
                                    "title": "Client Id",
                                    "anyOf": [{"type": "string"}, {"type": "null"}],
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/manually.md

    The main thing you need to run a **FastAPI** application (or any other ASGI application) in a remote server machine is an ASGI server program like **Uvicorn**, this is the one that comes by default in the `fastapi` command.
    
    There are several alternatives, including:
    
    * <a href="https://www.uvicorn.org/" class="external-link" target="_blank">Uvicorn</a>: a high performance ASGI server.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/query-params-str-validations.md

    Таким образом:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ...делает параметр необязательным со значением по умолчанию `None`, также как это делает:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  6. tests/test_application.py

                            },
                        },
                    }
                },
                "/query/list-default": {
                    "get": {
                        "summary": "Get Query List Default",
                        "operationId": "get_query_list_default_query_list_default_get",
                        "parameters": [
                            {
                                "name": "device_ids",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  7. tests/test_schema_extra_examples.py

            def query_example(
                data: Union[str, None] = Query(
                    default=None,
                    example="query1",
                ),
            ):
                return data
    
        @app.get("/query_examples/")
        def query_examples(
            data: Union[str, None] = Query(
                default=None,
                examples=["query1", "query2"],
            ),
        ):
            return data
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 37.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_sql_databases.py

                                "required": False,
                                "schema": {
                                    "title": "Skip",
                                    "type": "integer",
                                    "default": 0,
                                },
                                "name": "skip",
                                "in": "query",
                            },
                            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

                                "required": False,
                                "schema": {
                                    "title": "Skip",
                                    "type": "integer",
                                    "default": 0,
                                },
                                "name": "skip",
                                "in": "query",
                            },
                            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/query-params-str-validations.md

    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    Note que substituímos o valor padrão de `None` para `Query(default=None)`, o primeiro parâmetro de `Query` serve para o mesmo propósito: definir o valor padrão do parâmetro.
    
    Então:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ...Torna o parâmetro opcional, da mesma maneira que:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 9.3K bytes
    - Viewed (0)
Back to top