Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for towel (0.02 seconds)

  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():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 3.9K bytes
    - Click Count (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",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.1K bytes
    - Click Count (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": [
        {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. 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": [
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  5. 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": [
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  6. 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": [
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9K bytes
    - Click Count (0)
  7. doc/go_spec.html

    </pre>
    
    <p>
    Examples of valid array, slice, and map literals:
    </p>
    
    <pre>
    // list of prime numbers
    primes := []int{2, 3, 5, 7, 9, 2147483647}
    
    // vowels[ch] is true if ch is a vowel
    vowels := [128]bool{'a': true, 'e': true, 'i': true, 'o': true, 'u': true, 'y': true}
    
    // the array [10]float32{-1, 0, 0, 0, -0.1, -0.1, 0, 0, 0, -1}
    filter := [10]float32{-1, 4: -0.1, -0.1, 9: -1}
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top