Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for towel (0.02 sec)

  1. tests/test_tutorial/test_handling_errors/test_tutorial005.py

                    "input": "XL",
                }
            ],
            "body": {"title": "towel", "size": "XL"},
        }
    
    
    def test_post():
        data = {"title": "towel", "size": 5}
        response = client.post("/items/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_openapi_schema():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Теперь попробуйте отправить недействительный элемент, например:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Вы получите ответ о том, что данные недействительны, содержащий следующее тело:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Versuchen Sie nun, einen ungültigen Artikel zu senden:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Sie erhalten eine Response, die Ihnen sagt, dass die Daten ungültig sind und die den empfangenen Body enthält:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. docs/uk/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005.py hl[14] *}
    
    Тепер спробуйте надіслати некоректний елемент, наприклад:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    Ви отримаєте відповідь, яка повідомить Вам, які саме дані є некоректні у вашому тілі запиту:
    
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/handling-errors.md

    现在试着发送一个无效的 `item`,例如:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    
    ```
    
    收到的响应包含 `body` 信息,并说明数据是无效的:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Tente enviar um item inválido como este:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Você receberá uma *response* informando-o de que os dados são inválidos, e contendo o *body* recebido:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Ahora intenta enviar un ítem inválido como:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Recibirás un response que te dirá que los datos son inválidos conteniendo el body recibido:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    {* ../../docs_src/handling_errors/tutorial005_py39.py hl[14] *}
    
    Now try sending an invalid item like:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    You will receive a response telling you that the data is invalid containing the received body:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/handling-errors.md

    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    受信したボディを含むデータが無効であることを示すレスポンスが表示されます:
    
    ```JSON hl_lines="12 13 14 15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        // non-breaking space
        assertThat(parse("http://h/\u00a0").encodedPath).isEqualTo("/%C2%A0")
        // ogham space mark
        assertThat(parse("http://h/\u1680").encodedPath).isEqualTo("/%E1%9A%80")
        // mongolian vowel separator
        assertThat(parse("http://h/\u180e").encodedPath).isEqualTo("/%E1%A0%8E")
        // en quad
        assertThat(parse("http://h/\u2000").encodedPath).isEqualTo("/%E2%80%80")
        // em quad
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
Back to top