Apiflask

Latest version: v2.1.1

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

Scan your dependencies

Page 5 of 7

0.8.0

Released: 2021/7/7

- Automatically add a 404 response in OpenAPI spec for routes contains URL
variables ([issue 78][issue_78]).
- Rename the private method `app.get_spec` to `app._get_spec`, add new
parameter `force_update`. The `app.spec` property now will always return
the latest spec instead of the cached one ([issue 79][issue_79]).
- Support using `doc(responses={<STATUS_CODE>: <DESCRIPTION>})` to overwrite
existing response descriptions.
- Add configration variable `INFO` (and `app.info` attribute), it can be used
to set the following info fields: `description`, `termsOfService`, `contact`,
`license` ([issue 98][issue_98]).
- Rename the following configuration variables ([issue 99][issue_99]):
- `AUTO_PATH_SUMMARY` -> `AUTO_OPERATION_SUMMARY`
- `AUTO_PATH_DESCRIPTION` -> `AUTO_OPERATION_DESCRIPTION`

[issue_78]: https://github.com/apiflask/apiflask/issues/78
[issue_79]: https://github.com/apiflask/apiflask/issues/79
[issue_98]: https://github.com/apiflask/apiflask/issues/98
[issue_99]: https://github.com/apiflask/apiflask/issues/99

0.7.0

Released: 2021/6/24

- Support using async error processor and async spec processor
([pull 57][pull_57]).
- Fix auto-tag support for nesting blueprint ([pull 58][pull_58]).
- Support set the URL prefix of the OpenAPI blueprint with the
`openapi_blueprint_url_prefix` argument ([pull 64][pull_64]).
- Add a `flask spec` command to output the OpenAPI spec to stdout
or a file, also add new config `LOCAL_SPEC_PATH` and
`LOCAL_SPEC_JSON_INDENT` ([issue 61][issue_61]).
- Re-add the `SPEC_FORMAT` config. Remove the auto-detection of
the format from `APIFlask(spec_path=...)`, now you have to set the
format explicitly with the `SPEC_FORMAT` config ([issue 67][issue_67]).
- Support to sync the local OpenAPI spec automatically. Add new config
`SYNC_LOCAL_SPEC` ([issue 68][issue_68]).
- Change the default value of config `DOCS_FAVICON` to
`'https://apiflask.com/_assets/favicon.png'`, set to `None` to disable
the favicon.
- OpenAPI UI templates are move to `ui_templates.py`.
- Revert the renames on pre/post decorators from marshmallow ([issue 62][issue_62]).
- Change the default branch to "main".
- Move the source to the "src" directory.
- Enable pre-commit.

[pull_57]: https://github.com/apiflask/apiflask/pull/57
[pull_58]: https://github.com/apiflask/apiflask/pull/58
[pull_64]: https://github.com/apiflask/apiflask/pull/64
[issue_61]: https://github.com/apiflask/apiflask/issues/61
[issue_62]: https://github.com/apiflask/apiflask/issues/62
[issue_67]: https://github.com/apiflask/apiflask/issues/67
[issue_68]: https://github.com/apiflask/apiflask/issues/68

0.6.3

Released: 2021/5/17

- Improve static request dispatch ([pull 54][pull_54]).

[pull_54]: https://github.com/apiflask/apiflask/pull/54

0.6.2

Released: 2021/5/16

- Fix static request dispatch for Flask 2.0 ([issue 52][issue_52]).

[issue_52]: https://github.com/apiflask/apiflask/issues/52

0.6.1

Released: 2021/5/15

- Fix type annotaion for Flask 2.0 ([pull 48][pull_48]).
- Fix type annotaion for `schema` parameter of `input` and `output`
([pull 49][pull_49]).
- Fix type annotaion for imports by exporting top-level name explicitly
([pull 49][pull_49]).
- Fix async for `dispatch_request` for Flask 2.0 ([pull 50][pull_50]).

[pull_48]: https://github.com/apiflask/apiflask/pull/48
[pull_49]: https://github.com/apiflask/apiflask/pull/49
[pull_50]: https://github.com/apiflask/apiflask/pull/50

0.6.0

Released: 2021/5/11

- Support using the `output` decorator on async views ([pull 41][pull_41]).
- Add `PaginationSchema` and `pagination_builder` as basic pagination support
([pull 42][pull_42]).
- Import and rename the decorators from marshmallow ([pull 43][pull_43]).
- Rename `utils` module to `helpers` ([pull 44][pull_44]).
- Add `default` parameter for `get_reason_phrase` ([pull 45][pull_45]).

[pull_41]: https://github.com/apiflask/apiflask/pull/41
[pull_42]: https://github.com/apiflask/apiflask/pull/42
[pull_43]: https://github.com/apiflask/apiflask/pull/43
[pull_44]: https://github.com/apiflask/apiflask/pull/44
[pull_45]: https://github.com/apiflask/apiflask/pull/45

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.