Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for modelA (0.16 sec)

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

    `response_model` nimmt denselben Typ entgegen, den Sie auch für ein Pydantic-Modellfeld deklarieren würden, also etwa ein Pydantic-Modell, aber es kann auch z. B. eine `list`e von Pydantic-Modellen sein, wie etwa `List[Item]`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:58 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. 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 May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/body-nested-models.md

    ## Tief verschachtelte Modelle
    
    Sie können beliebig tief verschachtelte Modelle definieren:
    
    === "Python 3.10+"
    
        ```Python hl_lines="7  12  18  21  25"
        {!> ../../../docs_src/body_nested_models/tutorial007_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="9  14  20  23  27"
        {!> ../../../docs_src/body_nested_models/tutorial007_py39.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-model.md

    `response_model` receives the same type you would declare for a Pydantic model field, so, it can be a Pydantic model, but it can also be, e.g. a `list` of Pydantic models, like `List[Item]`.
    
    FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial003_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1  14-15  18-20  33"
        {!> ../../../docs_src/extra_models/tutorial003.py!}
        ```
    
    ### `Union` в Python 3.10
    
    В этом примере мы передаём `Union[PlaneItem, CarItem]` в качестве значения аргумента `response_model`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

        security: Optional[List[Dict[str, List[str]]]] = None
        tags: Optional[List[Tag]] = None
        externalDocs: Optional[ExternalDocumentation] = None
    
    
    _model_rebuild(Schema)
    _model_rebuild(Operation)
    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/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 May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 16K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/response-model.md

    ### Приоритет `response_model`
    
    Если одновременно указать аннотацию типа для ответа функции и параметр `response_model` - последний будет иметь больший приоритет и FastAPI будет использовать именно его.
    
    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)
  9. docs/ru/docs/tutorial/body-nested-models.md

    === "Python 3.10+"
    
        ```Python hl_lines="12"
        {!> ../../../docs_src/body_nested_models/tutorial002_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="14"
        {!> ../../../docs_src/body_nested_models/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="14"
        {!> ../../../docs_src/body_nested_models/tutorial002.py!}
        ```
    
    ## Типы множеств
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  10. maven-core/pom.xml

                <id>modello-site-doc</id>
                <goals>
                  <goal>xdoc</goal>
                </goals>
                <phase>pre-site</phase>
                <configuration>
                  <version>1.0.0</version>
                  <models>
                    <model>src/main/mdo/extension.mdo</model>
                  </models>
                </configuration>
              </execution>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 08:48:58 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top