Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 877 for Model3 (0.14 sec)

  1. docs/ja/docs/tutorial/body-nested-models.md

    ```Python hl_lines="12"
    {!../../../docs_src/body_nested_models/tutorial001.py!}
    ```
    
    これにより、各項目の型は宣言されていませんが、`tags`はある項目のリストになります。
    
    ## タイプパラメータを持つリストのフィールド
    
    しかし、Pythonには型や「タイプパラメータ」を使ってリストを宣言する方法があります:
    
    ### typingの`List`をインポート
    
    まず、Pythonの標準の`typing`モジュールから`List`をインポートします:
    
    ```Python hl_lines="1"
    {!../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### タイプパラメータを持つ`List`の宣言
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs_src/sql_databases/sql_app/models.py

    Moustapha Sall <******@****.***> 1704810933 -0500
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:35:33 GMT 2024
    - 710 bytes
    - Viewed (0)
  3. tests/test_response_model_invalid.py

        pass
    
    
    def test_invalid_response_model_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", response_model=NonPydanticModel)
            def read_root():
                pass  # pragma: nocover
    
    
    def test_invalid_response_model_sub_type_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", response_model=List[NonPydanticModel])
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 29 13:04:35 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  4. tests/test_serialize_response_model.py

    
    @app.get(
        "/items/coerce-exclude-unset",
        response_model=Item,
        response_model_exclude_unset=True,
    )
    def get_coerce_exclude_unset():
        return Item(aliased_name="coerce", price="1.0")
    
    
    @app.get(
        "/items/validlist-exclude-unset",
        response_model=List[Item],
        response_model_exclude_unset=True,
    )
    def get_validlist_exclude_unset():
        return [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  5. architecture/build-state-model.md

    # Build state model
    
    The Gradle daemon tracks state for various elements. These are arranged in a hierarchy:
    
    ```mermaid
      graph TD
    
      process["build process"]
      
      session["build session"]
      process --> session
      
      build_tree["build tree"]
      session --> build_tree
      
      build1["root build"]
      build_tree --> build1
      
      project1["root project"]
      build1 --> project1
      
      project2["project"]
      build1 --> project2
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sun May 05 22:45:11 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. api/maven-api-plugin/pom.xml

                  <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
                  <version>2.0.0</version>
                  <models>
                    <model>src/main/mdo/plugin.mdo</model>
                  </models>
                  <templates>
                    <template>model.vm</template>
                  </templates>
                  <params>
                    <param>packageModelV4=org.apache.maven.api.plugin.descriptor</param>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 08:48:58 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/projects/past-model-version-pom.xml

    under the License.
    -->
    
    <project>
        <!-- once we move past supporting modelVersion 4.0.0 we should update this version -->
        <modelVersion>3.9.9</modelVersion>
        <groupId>tests.project</groupId>
        <artifactId>past-model-version</artifactId>
        <version>1</version>
    XML
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Mon Jun 03 20:33:44 GMT 2019
    - 1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_path_params/test_tutorial005.py

            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/models/{model_name}": {
                    "get": {
                        "summary": "Get Model",
                        "operationId": "get_model_models__model_name__get",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/sql-databases.md

    ## Create the Pydantic models
    
    Now let's check the file `sql_app/schemas.py`.
    
    !!! tip
        To avoid confusion between the SQLAlchemy *models* and the Pydantic *models*, we will have the file `models.py` with the SQLAlchemy models, and the file `schemas.py` with the Pydantic models.
    
        These Pydantic models define more or less a "schema" (a valid data shape).
    
    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)
  10. tests/test_tuples.py

                            },
                        },
                    }
                },
                "/tuple-of-models/": {
                    "post": {
                        "summary": "Post Tuple Of Models",
                        "operationId": "post_tuple_of_models_tuple_of_models__post",
                        "requestBody": {
                            "content": {
                                "application/json": {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
Back to top