Apispec

Latest version: v6.7.1

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

Scan your dependencies

Page 7 of 20

3.2.0

******************

Features:

- Add ``match_info`` to ``__location_map__`` (:pr:`517`).
Thanks :user:`fedorfo` for the PR.

3.1.1

******************

Bug fixes:

- Don't emit a warning when passing "default" as response status code in OASv2
(:pr:`521`).

3.1.0

******************

Features:

- Add `apispec.core.Components.example` for adding Example Objects (:pr:`515`).
Thanks :user:`codeasashu` for the PR.

Support:

- Test against Python 3.8 (:pr:`510`).

3.0.0

++++++++++++++++++

Features:

- Add support for generating user-defined OpenAPI properties for custom field
classes via an ``add_attribute_function`` method (:pr:`478` and :pr:`498`).
- [apispec.ext.marshmallow]: *Backwards-incompatible* ``fields.Raw`` and
``fields.Field`` are now represented by OpenAPI
`Any Type <https://swagger.io/docs/specification/data-models/data-types/#any>`_
(:pr:`495`).
- [apispec.ext.marshmallow]: *Backwards-incompatible*: The
``schema_name_resolver`` function now receives a ``Schema`` class, a
``Schema`` instance or a string that resolves to a ``Schema`` class. This
allows a custom resolver to generate different names depending on schema
modifiers used in a ``Schema`` instance (:pr:`476`).

Bug fixes:

- [apispec.ext.marshmallow]: With marshmallow 3, the default value of a field
in the documentation is the serialized value of the ``missing`` attribute,
not ``missing`` itself (:pr:`490`).

Refactoring:

- ``clean_parameters`` and ``clean_operations`` are now ``APISpec`` methods
(:pr:`489`).
- [apispec.ext.marshmallow]: ``Schema`` resolver methods are extracted from
``MarshmallowPlugin`` into a ``SchemaResolver`` class member (:pr:`496`).
- [apispec.ext.marshmallow]: ``OpenAPIConverter`` is now a class member of
``MarshmallowPlugin`` (:pr:`493`).
- [apispec.ext.marshmallow]: ``Field`` to properties conversion logic is
extracted from ``OpenAPIConverter`` into ``FieldConverterMixin`` (:pr:`478`).

Other changes:

- Drop support for Python 2 (:issue:`491`). Thanks :user:`hugovk` for the PR.
- Drop support for marshmallow pre-releases. Only stable 2.x and 3.x versions
are supported (:issue:`485`).

2.0.2

++++++++++++++++++

Bug fixes:

- Fix compatibility with marshmallow 3.0.0rc8 (:pr:`469`).

Other changes:

- Switch to Azure Pipelines (:pr:`468`).

2.0.1

++++++++++++++++++

Bug fixes:

- Don't mutate ``operations`` and ``parameters`` in ``APISpec.path`` to avoid
issues when calling it twice with the same ``operations`` or ``parameters``
(:pr:`464`).

Page 7 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.