Flask-pydantic-api

Latest version: v1.4.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.4.0

-------------

Released 2024-12-10

- Fix https://github.com/adamsussman/flask-pydantic-api/issues/4: Correctly handle GET with json Content Type and
empy request body.
- Replace method of getting apidocs template path that accounts for pkg_resources being removed in Python 3.12

1.3.1

-------------

Released 2024-09-06

- Fix https://github.com/adamsussman/flask-pydantic-api/issues/2: Correct Content-Type header when not using
pydantic_enhanced_serializer

1.3.0

-------------

Released 2024-09-06

- Add pydantic_api parameter `get_request_model_from_query_string`. This instructs the OpenAPI schema generator
to put the request model's parameters into the query string specification.

1.2.0

-------------

Released 2024-06-09

- Add pydantic_api parameter `success_status_code_by_response_model`. This allows methods that specify a return
type that is a Union of multiple BaseModels to also specify a specific http status code depending on which
model is in the actual response.
- OpenAPI schemas will now correctly reflect cases where the response is a Union of multiple pydantic models including
custom statuses per model.
- Allow method request body type to be a Union of a model with a file upload and another non-upload model

1.1.0

-------------

Released 2023-12-01

- Removed openapi-pydantic as a methodology and moved to pure native python data structures
(dicts, etc) for OpenAPI.
- Many reworks and fixes to how openapi schema is generated.

1.0.0

-------------

Released 2023-11-27

BREAKING CHANGES

- Conversion to Pydantic 2.0. Pydantic < 2.5 no longer supported.
- Added `model_dump_kwargs` argument to `pydantic_api`

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.