Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 328 for model (0.16 sec)

  1. docs/en/docs/tutorial/response-model.md

    ### `response_model` Priority
    
    If you declare both a return type and a `response_model`, the `response_model` will take priority and be used by FastAPI.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/response-model.md

    ### Приоритет `response_model`
    
    Если одновременно указать аннотацию типа для ответа функции и параметр `response_model` - последний будет иметь больший приоритет и FastAPI будет использовать именно его.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 30.5K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/response-model.md

    ### `response_model`-Priorität
    
    Wenn sowohl Rückgabetyp als auch `response_model` deklariert sind, hat `response_model` die Priorität und wird von FastAPI bevorzugt verwendet.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/response-model.md

        👉 ✔ `response_model_by_alias` 👈 👷 ➡.
    
    === "🐍 3️⃣.6️⃣ & 🔛"
    
        ```Python hl_lines="31  37"
        {!> ../../../docs_src/response_model/tutorial005.py!}
        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ & 🔛"
    
        ```Python hl_lines="29  35"
        {!> ../../../docs_src/response_model/tutorial005_py310.py!}
        ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
  5. tests/test_response_model_as_return_annotation.py

    )
    def response_model_model1_annotation_model2_return_invalid_model() -> Item:
        return Item(name="Foo", price=42.0)
    
    
    @app.get(
        "/response_model_model1-annotation_model2-return_dict_with_extra_data",
        response_model=User,
    )
    def response_model_model1_annotation_model2_return_dict_with_extra_data() -> Item:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
  6. fastapi/openapi/utils.py

        all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or []))
        model_name_map = get_compat_model_name_map(all_fields)
        schema_generator = GenerateJsonSchema(ref_template=REF_TEMPLATE)
        field_mapping, definitions = get_definitions(
            fields=all_fields,
            schema_generator=schema_generator,
            model_name_map=model_name_map,
            separate_input_output_schemas=separate_input_output_schemas,
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  7. tests/test_tuples.py

    
    def test_model_with_tuple_valid():
        data = {"items": [["foo", "bar"], ["baz", "whatelse"]]}
        response = client.post("/model-with-tuple/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_model_with_tuple_invalid():
        data = {"items": [["foo", "bar"], ["baz", "whatelse", "too", "much"]]}
        response = client.post("/model-with-tuple/", json=data)
    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)
  8. .teamcity/src/main/kotlin/model/CIBuildModel.kt

        CompileAll {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
                return CompileAll(model, stage)
            }
        },
        SanityCheck {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
                return SanityCheck(model, stage)
            }
        },
        BuildDistributions {
            override fun create(model: CIBuildModel, stage: Stage): BaseGradleBuildType {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Feb 23 01:54:48 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  9. .teamcity/src/test/kotlin/PromotionProjectTests.kt

                model.buildTypes.map { it.name }
            )
        }
    
        @Test
        fun `promotion project has expected build types for other branches`() {
            val model = setupModelFor("release")
    
            assertEquals("Promotion", model.name)
            assertEquals(11, model.buildTypes.size)
            assertEquals(
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 13 14:18:23 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultArtifactDescriptorReader.java

                }
    
                Model model;
    
                // TODO hack: don't rebuild model if it was already loaded during reactor resolution
                final WorkspaceReader workspace = session.getWorkspaceReader();
                if (workspace instanceof MavenWorkspaceReader) {
                    model = ((MavenWorkspaceReader) workspace).findModel(pomArtifact);
                    if (model != null) {
                        return model;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.9K bytes
    - Viewed (0)
Back to top