Flask-typed-routes

Latest version: v0.2.2

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

Scan your dependencies

Page 1 of 3

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.

0.1.3

- **Fix**: Exclude validation errors "ctx" because can't be serialized to JSON.
- **Change**: Use OpenApi `default` response if `status_code` is not specified in `typed_route` decorator.

0.1.2

- **Change**: Improved the OpenApi schema `summary` and `operationId` of class-based view endpoints.
- **Change**: Register endpoints that do not have type annotations in the OpenApi schema.
- **Add**: `FlaskTypedRoutes` class allows through the `exclude_doc_url_prefix` parameter to exclude from the OpenApi scheme
the endpoints associated with the generation of the Interactive documentation.
- **Add**: `FlaskTypedRoutes` class allows through the `validation_error_status_code` parameter to define the status code
to be returned when a validation error occurs. The default value is 400.

0.1.1

- **Change**: Improved OpenAPI schema to include default HTTP response.

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.