Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for Value (0.35 sec)

  1. docs/de/docs/tutorial/handling-errors.md

                "loc": [
                    "path",
                    "item_id"
                ],
                "msg": "value is not a valid integer",
                "type": "type_error.integer"
            }
        ]
    }
    ```
    
    eine Textversion:
    
    ```
    1 validation error
    path -> item_id
      value is not a valid integer (type=type_error.integer)
    ```
    
    #### `RequestValidationError` vs. `ValidationError`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  2. docs/tr/docs/tutorial/path-params.md

    ```
    
    #### *Enumeration Değerini* Edinelim
    
    `model_name.value` veya genel olarak `your_enum_member.value` tanımlarını kullanarak (bu durumda bir `str` olan) gerçek değere ulaşabilirsiniz:
    
    ```Python hl_lines="20"
    {!../../../docs_src/path_params/tutorial005.py!}
    ```
    
    !!! tip "İpucu"
        `"lenet"` değerine `ModelName.lenet.value` tanımı ile de ulaşabilirsiniz.
    
    #### *Enumeration Üyelerini* Döndürelim
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.8K bytes
    - Viewed (1)
  3. fastapi/_compat.py

        return _annotation_is_sequence(annotation) or _annotation_is_sequence(
            get_origin(annotation)
        )
    
    
    def value_is_sequence(value: Any) -> bool:
        return isinstance(value, sequence_types) and not isinstance(value, (str, bytes))  # type: ignore[arg-type]
    
    
    def _annotation_is_complex(annotation: Union[Type[Any], None]) -> bool:
        return (
    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)
  4. docs/en/docs/advanced/settings.md

        If not provided, it's `None` by default, here we provide `"World"` as the default value to use.
    
    Then you could call that Python program:
    
    <div class="termy">
    
    ```console
    // Here we don't set the env var yet
    $ python main.py
    
    // As we didn't set the env var, we get the default value
    
    Hello World from Python
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  5. tests/test_annotated.py

                }
            )
            # TODO: remove when deprecating Pydantic v1
            | IsDict(
                {
                    "ctx": {"limit_value": 1},
                    "loc": ["query", "foo"],
                    "msg": "ensure this value has at least 1 characters",
                    "type": "value_error.any_str.min_length",
                }
            )
        ]
    }
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

                return str(v)
    
            @classmethod
            def _validate(cls, __input_value: Any, _: Any) -> str:
                logger.warning(
                    "email-validator not installed, email fields will be treated as str.\n"
                    "To install, run: pip install email-validator"
                )
                return str(__input_value)
    
            @classmethod
            def __get_pydantic_json_schema__(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  7. docs/en/docs/tutorial/request-files.md

        ```Python hl_lines="12"
        {!> ../../../docs_src/request_files/tutorial001.py!}
        ```
    
    Using `UploadFile` has several advantages over `bytes`:
    
    * You don't have to use `File()` in the default value of the parameter.
    * It uses a "spooled" file:
        * A file stored in memory up to a maximum size limit, and after passing this limit it will be stored in disk.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/sql-databases.md

        {!> ../../../docs_src/sql_databases/sql_app/schemas.py!}
        ```
    
    !!! tip
        Notice it's assigning a value with `=`, like:
    
        `orm_mode = True`
    
        It doesn't use `:` as for the type declarations before.
    
        This is setting a config value, not declaring a type.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/handling-errors.md

                "loc": [
                    "path",
                    "item_id"
                ],
                "msg": "value is not a valid integer",
                "type": "type_error.integer"
            }
        ]
    }
    ```
    
    вы получите текстовую версию:
    
    ```
    1 validation error
    path -> item_id
      value is not a valid integer (type=type_error.integer)
    ```
    
    #### `RequestValidationError` или `ValidationError`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/schema-extra-example.md

    Jedes spezifische Beispiel-`dict` in den `examples` kann Folgendes enthalten:
    
    * `summary`: Kurze Beschreibung für das Beispiel.
    * `description`: Eine lange Beschreibung, die Markdown-Text enthalten kann.
    * `value`: Dies ist das tatsächlich angezeigte Beispiel, z. B. ein `dict`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:19:53 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top