Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Submodel (0.04 sec)

  1. tests/test_response_model_as_return_annotation.py

                    }
                },
                "/response_model_filtering_model-annotation_submodel-return_submodel": {
                    "get": {
                        "summary": "Response Model Filtering Model Annotation Submodel Return Submodel",
                        "operationId": "response_model_filtering_model_annotation_submodel_return_submodel_response_model_filtering_model_annotation_submodel_return_submodel_get",
                        "responses": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 47.7K bytes
    - Viewed (0)
  2. fastapi/routing.py

                    name=response_name,
                    type_=self.response_model,
                    mode="serialization",
                )
                # Create a clone of the field, so that a Pydantic submodel is not returned
                # as is just because it's an instance of a subclass of a more limited class
                # e.g. UserInDB (containing hashed_password) could be a subclass of User
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  3. docs/en/docs/release-notes.md

            * When a `response_model` is declared, the same `response_model` type declaration won't be used as is, it will be "cloned" to create an new one (a cloned Pydantic `Field` with all the submodels cloned as well).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top