Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for model_validate (0.07 sec)

  1. docs/de/docs/advanced/path-operation-advanced-configuration.md

    ```
    
    ////
    
    /// info
    
    In Pydantic Version 1 war die Methode zum Parsen und Validieren eines Objekts `Item.parse_obj()`, in Pydantic Version 2 heißt die Methode `Item.model_validate()`.
    
    ///
    
    /// tip | "Tipp"
    
    Hier verwenden wir dasselbe Pydantic-Modell wieder.
    
    Aber genauso hätten wir es auch auf andere Weise validieren können.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/path-operation-advanced-configuration.md

    ```
    
    ////
    
    /// info
    
    In Pydantic version 1 the method to parse and validate an object was `Item.parse_obj()`, in Pydantic version 2, the method is called `Item.model_validate()`.
    
    ///
    
    /// tip
    
    Here we reuse the same Pydantic model.
    
    But the same way, we could have validated it in some other way.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_sql_databases/test_tutorial002.py

        )
    
        with TestClient(mod.app) as c:
            yield c
    
    
    def test_crud_app(client: TestClient):
        # TODO: this warns that SQLModel.from_orm is deprecated in Pydantic v1, refactor
        # this if using obj.model_validate becomes independent of Pydantic v2
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            # No heroes before creating
            response = client.get("heroes/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top