Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 156 for 8105 (0.04 sec)

  1. docs/ru/docs/tutorial/response-model.md

    {!> ../../docs_src/response_model/tutorial004.py!}
    ```
    
    ////
    
    * `description: Union[str, None] = None` (или `str | None = None` в Python 3.10), где `None` является значением по умолчанию.
    * `tax: float = 10.5`, где `10.5` является значением по умолчанию.
    * `tags: List[str] = []`, где пустой список `[]` является значением по умолчанию.
    
    но вы, возможно, хотели бы исключить их из ответа, если данные поля не были заданы явно.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/body-updates.md

    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    Como ele não inclui o atributo já armazenado `"tax": 20.2`, o modelo de entrada assumiria o valor padrão de `"tax": 10.5`.
    
    E os dados seriam salvos com esse "novo" `tax` de `10.5`.
    
    ## Atualizações parciais com `PATCH`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:16:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-updates.md

        "price": 3,
        "description": None,
    }
    ```
    
    because it doesn't include the already stored attribute `"tax": 20.2`, the input model would take the default value of `"tax": 10.5`.
    
    And the data would be saved with that "new" `tax` of `10.5`.
    
    ## Partial updates with `PATCH`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    ws://foo:80/  s:ws h:foo p:/
    ws://foo:81/  s:ws h:foo port:81 p:/
    ws://foo:443/  s:ws h:foo port:443 p:/
    ws://foo:815/  s:ws h:foo port:815 p:/
    wss://foo:80/  s:wss h:foo port:80 p:/
    wss://foo:81/  s:wss h:foo port:81 p:/
    wss://foo:443/  s:wss h:foo p:/
    wss://foo:815/  s:wss h:foo port:815 p:/
    http:/example.com/  s:http h:example.com p:/
    ftp:/example.com/  s:ftp h:example.com p:/
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/response-model.md

    レスポンスモデルにはデフォルト値を設定することができます:
    
    ```Python hl_lines="11 13 14"
    {!../../docs_src/response_model/tutorial004.py!}
    ```
    
    * `description: str = None`は`None`がデフォルト値です。
    * `tax: float = 10.5`は`10.5`がデフォルト値です。
    * `tags: List[str] = []` は空のリスト(`[]`)がデフォルト値です。
    
    しかし、実際に保存されていない場合には結果からそれらを省略した方が良いかもしれません。
    
    例えば、NoSQLデータベースに多くのオプション属性を持つモデルがあるが、デフォルト値でいっぱいの非常に長いJSONレスポンスを送信したくない場合です。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/body-updates.md

    つまり、`PUT`を使用して以下のボディで項目`bar`を更新したい場合は:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    すでに格納されている属性`"tax": 20.2`を含まないため、入力モデルのデフォルト値は`"tax": 10.5`です。
    
    そして、データはその「新しい」`10.5`の`tax`と共に保存されます。
    
    ## `PATCH`による部分的な更新
    
    また、<a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH" class="external-link" target="_blank">HTTPの`PATCH`</a>操作でデータを*部分的に*更新することもできます。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial006_py310.py

                                {"title": "Description", "type": "string"}
                            ),
                            "tax": {"title": "Tax", "type": "number", "default": 10.5},
                        },
                    },
                    "ValidationError": {
                        "title": "ValidationError",
                        "required": ["loc", "msg", "type"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheTest.kt

        //      last modified: 105 seconds ago
        //             served:   5 seconds ago
        //   default lifetime: (105 - 5) / 10 = 10 seconds
        //            expires:  10 seconds from served date = 5 seconds from now
        server.enqueue(
          MockResponse.Builder()
            .addHeader("Last-Modified: " + formatDate(-105, TimeUnit.SECONDS))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  9. src/test/resources/plugin/repo3/fess-crawler-parent/maven-metadata.xml

        <release>14.14.0</release>
        <versions>
          <version>1.0.0</version>
          <version>1.0.1</version>
          <version>1.0.2</version>
          <version>1.0.3</version>
          <version>1.0.4</version>
          <version>1.0.5</version>
          <version>1.0.6</version>
          <version>1.0.7</version>
          <version>1.0.8</version>
          <version>1.0.9</version>
          <version>1.0.10</version>
          <version>1.0.11</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/test/resources/plugin/repo3/fess-crawler/maven-metadata.xml

        <release>14.14.0</release>
        <versions>
          <version>1.0.0</version>
          <version>1.0.1</version>
          <version>1.0.2</version>
          <version>1.0.3</version>
          <version>1.0.4</version>
          <version>1.0.5</version>
          <version>1.0.6</version>
          <version>1.0.7</version>
          <version>1.0.8</version>
          <version>1.0.9</version>
          <version>1.0.10</version>
          <version>1.0.11</version>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:30:41 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top