Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 783 for Pydantic (0.19 sec)

  1. docs/tr/docs/features.md

    * 100% test kapsayıcılığı.
    * 100% typeları belirtilmiş codebase.
    
    ## Pydantic özellikleri
    
    **FastAPI** ile <a href="https://docs.pydantic.dev/" class="external-link" target="_blank"><strong>Pydantic</strong></a> tamamiyle uyumlu ve üzerine kurulu. Yani FastAPI üzerine ekleme yapacağınız herhangi bir Pydantic kodu da çalışacaktır.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/security/get-current-user.md

    ```Python hl_lines="10"
    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    그러나 아직도 유용하지 않습니다.
    
    현재 사용자를 제공하도록 합시다.
    
    ## 유저 모델 생성하기
    
    먼저 Pydantic 유저 모델을 만들어 보겠습니다.
    
    Pydantic을 사용하여 본문을 선언하는 것과 같은 방식으로 다른 곳에서 사용할 수 있습니다.
    
    === "파이썬 3.7 이상"
    
        ```Python hl_lines="5  12-16"
        {!> ../../../docs_src/security/tutorial002.py!}
        ```
    
    === "파이썬 3.10 이상"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body/test_tutorial001_py310.py

                        "msg": "Field required",
                        "input": {"name": "Foo"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "price"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (2)
  4. tests/test_tutorial/test_body/test_tutorial001.py

                        "msg": "Field required",
                        "input": {"name": "Foo"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "price"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    }
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  5. docs/em/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial001_py310.py!}
        ```
    
    ### 🔃 `**user_in.dict()`
    
    #### Pydantic `.dict()`
    
    `user_in` Pydantic 🏷 🎓 `UserIn`.
    
    Pydantic 🏷 ✔️ `.dict()` 👩‍🔬 👈 📨 `dict` ⏮️ 🏷 💽.
    
    , 🚥 👥 ✍ Pydantic 🎚 `user_in` 💖:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    &amp; ⤴️ 👥 🤙:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/extra-data-types.md

        * 生成されたスキーマは`str`で`binary`の「フォーマット」持つことを指定します。
    * `Decimal`:
        * Pythonの標準的な`Decimal`です。
        * リクエストやレスポンスでは`float`と同じように扱います。
    
    * Pydanticの全ての有効な型はこちらで確認できます: <a href="https://docs.pydantic.dev/latest/concepts/types/" class="external-link" target="_blank">Pydantic data types</a>。
    ## 例
    
    ここでは、上記の型のいくつかを使用したパラメータを持つ*path operation*の例を示します。
    
    ```Python hl_lines="1 2 12-16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/response-model.md

    `response_model` принимает те же типы, которые можно указать для какого-либо поля в модели Pydantic. Таким образом, это может быть как одиночная модель Pydantic, так и `список (list)` моделей Pydantic. Например, `List[Item]`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 30.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-fields.md

    # Body - Fields
    
    The same way you can declare additional validation and metadata in *path operation function* parameters with `Query`, `Path` and `Body`, you can declare validation and metadata inside of Pydantic models using Pydantic's `Field`.
    
    ## Import `Field`
    
    First, you have to import it:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  9. tests/test_inherited_custom_class.py

        @app.get("/get_custom_class")
        def return_some_user():
            # Test that the fix also works for custom pydantic classes
            return SomeCustomClass(a_uuid=MyUuid("b8799909-f914-42de-91bc-95c819218d01"))
    
        client = TestClient(app)
    
        with client:
            response_simple = client.get("/fast_uuid")
            response_pydantic = client.get("/get_custom_class")
    
        assert response_simple.json() == {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/schema-extra-example.md

        `"json_schema_extra"`를 생성된 JSON 스키마에서 보여주고 싶은 별도의 데이터와 `examples`를 포함하는 `dict`으로 설정할 수 있습니다.
    
    === "Pydantic v1"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top