Apispec

Latest version: v6.7.1

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

Scan your dependencies

Page 6 of 20

4.1.0

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

Features:

- Resolve schemas in callbacks (:pr:`544`). Thanks :user:`kortsi` for the PR.

Bug fixes:

- Fix docstrings documenting kwargs type as dict (:issue:`534`).
- Use ``x-minimum`` and ``x-maximum`` extensions to document ranges that are
not of number type (e.g. datetime) (:issue:`614`).

Other changes:

- Test against Python 3.9.

4.0.0

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

Features:

- *Backwards-incompatible*: Automatically generate references for schemas
passed as strings in responses and request bodies. When using
``MarshmallowPlugin``, if a schema is passed as string, the marshmallow
registry is looked up for this schema name and if none is found, the name is
assumed to be a reference to a manually created schema and a reference is
generated. No exception is raised anymore if the schema name can't be found
in the registry. (:pr:`554`)

4.0.0b1

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

Features:

- *Backwards-incompatible*: Ignore ``location`` field metadata. This attribute
was used in webargs but it has now been dropped. A ``Schema`` can now only
have a single location. This simplifies the logic in ``OpenAPIConverter``
methods, where ``default_in`` argument now becomes ``location``. (:pr:`526`)
- *Backwards-incompatible*: Don't document ``int`` format as ``"int32"`` and
``float`` format as ``"float"``, as those are platform-dependent (:pr:`595`).

Refactoring:

- ``OpenAPIConverter.field2parameters`` and
``OpenAPIConverter.property2parameter`` are removed.
``OpenAPIConverter.field2parameter`` becomes private. (:pr:`581`)

Other changes:

- Drop support for marshmallow 2. Marshmallow 3.x is required. (:pr:`583`)
- Drop support for Python 3.5. Python 3.6+ is required. (:pr:`582`)

3.3.2

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

Bug fixes:

- Fix crash when field metadata contains non-string keys (:pr:`596`).
Thanks :user:`sanzoghenzo` for the fix.

3.3.1

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

Bug fixes:

- Fix ``MarshmallowPlugin`` crash when ``resolve_schema_dict`` is passed a
schema as string and ``schema_name_resolver`` returns ``None``
(:issue:`566`). Thanks :user:`black3r` for reporting and thanks
:user:`Bangertm` for the PR.

3.3.0

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

Features:

- Instantiate ``Components`` before calling plugins' ``init_spec`` (:pr:`539`).
Thanks :user:`Colin-b` for the PR.

Page 6 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.