Flask-typed-routes

Latest version: v0.2.5

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

Scan your dependencies

Page 1 of 3

0.2.5

- **Add**: Add `Depends` field to allow dependencies between parameters.
- **Add**: The `typed_route` decorator can receive a list of `dependencies`.
- **Change**: **OpenApi** schema has been improved for complex serialization scenarios like JSON in query params.

0.2.4

- **Add**: Refactor to improve code organization
- **Add**: Add more tests to improve coverage.
- **Add**: The `typed_route` decorator can receive `requestBody` with value `True` to generate an object schema
for the OpenAPI operation.
- **Fix**: Deserialization of JSON type Query parameters.

0.2.3

- **Add**: Support serialization of request parameters of a type object.
- **Breaking-Change**: `FlaskTypedRoutes` class can't receive the `openapi_url_prefix` and `openapi_url_json` parameters in
the constructor anymore. Now, the OpenAPI schema is offered by the `get_openapi_schema` method.

0.2.2

- **Breaking-Change**: The `typed_route` decorator can now receive `status_code` parameter as a keyword argument.
- **Add**: The Field class now accepts the `explode` an `style` parameters to define the serialization
behavior according to the OpenAPI specification. Supported styles are `simple`, `form`, `spaceDelimited`, `pipeDelimited`,

0.2.1

- **Breaking-Change**: `FlaskTypedRoutes` fields can't receive the `multi` parameter in the constructor anymore. Now,
the fields check if the parameter is a multiple value based on the type annotation (list, set, tuple).
- **Fix**: The `typed_route` decorator can now receive OpenApi reference `parameters` ($ref).
- **Add**: Using `json_schema_extra` param of Pydantic field to add properties extra to the OpenAPI parameter schema.

0.2.0

- **Add**: The `FlaskTypedRoutes` class now receives the `openapi_url_prefix` and `openapi_url_json` parameters in
the constructor to define the OpenAPI schema URL and Api interactive documentation
- **Breaking-Change**: `FlaskTypedRoutes` can't receive the `exclude_doc_url_prefix` parameter in the constructor anymore.
- **Breaking-Change**: `FlaskTypedRoutes` now hasn't the `openapi_schema ` attribute. The OpenAPI schema is served in the
URL defined by `openapi_url_json`.
- **Improvement**: Avoid redundant OpenApi components in the schema.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.