- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for invert (0.15 sec)
-
docs/en/docs/advanced/dataclasses.md
FastAPI will use the `response_model` parameter (that includes dataclasses) to convert the response. You can combine `dataclasses` with other type annotations in many different combinations to form complex data structures. Check the in-code annotation tips above to see more specific details. ## Learn More You can also combine `dataclasses` with other Pydantic models, inherit from them, include them in your own models, etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001_pv1.py
) assert response.status_code == 200 @needs_pydanticv1 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text # insert_assert(response.json()) assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.4K bytes - Viewed (0) -
docs/fr/mkdocs.yml
INHERIT: ../en/mkdocs.yml...
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 25 12:33:58 GMT 2023 - 26 bytes - Viewed (0) -
docs/zh-hant/mkdocs.yml
INHERIT: ../en/mkdocs.yml...
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Jan 17 17:15:27 GMT 2024 - 26 bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py
"converted": { "summary": "An example with converted data", "description": "FastAPI can convert price `strings` to actual `numbers` automatically", "value": {"name": "Bar", "price": "35.4"}, }, "invalid": {
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 26 18:03:13 GMT 2023 - 6.7K bytes - Viewed (0) -
fastapi/params.py
deprecated: Union[deprecated, str, bool, None] = None, include_in_schema: bool = True, json_schema_extra: Union[Dict[str, Any], None] = None, **extra: Any, ): self.convert_underscores = convert_underscores super().__init__( default=default, default_factory=default_factory, annotation=annotation, alias=alias,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 27.5K bytes - Viewed (1) -
fastapi/param_functions.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 62.5K bytes - Viewed (0) -
docs/en/docs/advanced/behind-a-proxy.md
If you pass a custom list of `servers` and there's a `root_path` (because your API lives behind a proxy), **FastAPI** will insert a "server" with this `root_path` at the beginning of the list. For example: ```Python hl_lines="4-7" {!../../../docs_src/behind_a_proxy/tutorial003.py!} ``` Will generate an OpenAPI schema like:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 11.6K bytes - Viewed (2) -
docs/en/docs/tutorial/response-model.md
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 If you have strict type checks in your editor, mypy, etc, you can declare the function return type as `Any`.
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) -
docs/en/docs/tutorial/security/get-current-user.md
!!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="19-22 26-27" {!> ../../../docs_src/security/tutorial002.py!} ``` ## Inject the current user So now we can use the same `Depends` with our `get_current_user` in the *path operation*: === "Python 3.10+" ```Python hl_lines="31"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 7.6K bytes - Viewed (0)