Pydantic allows you to use object, dict, or mixed data for input. The following examples all produce the same OpenAPI result as above: ⚠️ Important: Always use by_alias=True, exclude_none=True when ...
Since pip 23.1, using pip in the system is disabled by defaut to prevent breaking system packages by overwriting dependencies. To avoid this, you can use a virtual environment (python3 -m venv env), ...