Apiflask

Latest version: v2.1.1

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

Scan your dependencies

Page 2 of 7

1.3.1

Released: 2023/3/27

- Fix the import error when calling `apispec.yaml_utils.dict_to_yaml`
([issue 419][issue_419]).

[issue_419]: https://github.com/apiflask/apiflask/issues/419

1.3.0

Released: 2023/3/18

- Add `scurity_scheme_name` for `HTTPBasicAuth` and `HTTPTokenAuth` to define custom
OpenAPI security scheme name ([issue 410][issue_410]).
- Add config `SPEC_PROCESSOR_PASS_OBJECT` to control the argument type of
spec processor. The `spec` argument will be an `apispec.APISpec` object
when this config is `True` ([issue 213][issue_213]).
- Add `content_type` parameter to the `output()` decorator to customize the
response's content/media type.

[issue_410]: https://github.com/apiflask/apiflask/issues/410
[issue_357]: https://github.com/apiflask/apiflask/issues/357
[issue_213]: https://github.com/apiflask/apiflask/issues/213

1.2.3

Released: 2023/2/21

- Bypass OpenAPI spec generation for view methods ([issue 406][issue_406]).

[issue_406]: https://github.com/apiflask/apiflask/issues/406

1.2.2

Released: 2023/2/18

- Remove the validation of input locations ([issue 259][issue_259]).
- Support passing `Function` type config to `SWAGGER_UI_CONFIG` ([issue 381][issue_381]).
- Fix the base response support so that a custom class can be returned from
the view function ([issue 384][issue_384]).

[issue_259]: https://github.com/apiflask/apiflask/issues/259
[issue_381]: https://github.com/apiflask/apiflask/issues/381
[issue_384]: https://github.com/apiflask/apiflask/issues/384

1.2.1

Released: 2023/1/15

- Support to generate the OpenAPI `servers` field when the reqeust context is available. Add
the config `AUTO_SERVERS` to control this automation behavior ([issue 377][issue_377]).

[issue_377]: https://github.com/apiflask/apiflask/issues/377

1.2.0

Released: 2023/1/8

- **[Breaking change]** Add `apiflask.views.MethodView` to replace `flask.views.MethodView`, raise error if
using `flask.views.MethodView` ([issue 341][issue_341]).
- **[Breaking change]** Change the status code of request validation error from 400 to 422 ([issue 345][issue_345]).
- Add `Enum` field from marshmallow 3.18.
- Fix OpenAPI spec generating for path parameters when path schema is provided ([issue 350][issue_350]).
- Add `spec_plugins` param to `APIFlask` class to support using custom apispec plugins ([issue 349][issue_349]).
- Improve the default bypassing rules to support bypass blueprint's static endpoint and
Flask-DebugToolbar ([issue 344][issue_344], [issue 369][issue_369]).
- Explicitly check if `view_func.view_class` is `MethodViewType` in `add_url_rule` ([issue 379][issue_379]).
- The schema fields are now in order by default, which ensures the output of `flask spec` is deterministic
([issue 373][issue_373]).

[issue_350]: https://github.com/apiflask/apiflask/issues/350
[issue_349]: https://github.com/apiflask/apiflask/issues/349
[issue_345]: https://github.com/apiflask/apiflask/issues/345
[issue_344]: https://github.com/apiflask/apiflask/issues/344
[issue_369]: https://github.com/apiflask/apiflask/issues/369
[issue_379]: https://github.com/apiflask/apiflask/issues/379
[issue_373]: https://github.com/apiflask/apiflask/issues/373
[issue_341]: https://github.com/apiflask/apiflask/issues/341

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.