github wemake-services/django-modern-rest 0.10.0
Version 0.10.0

4 hours ago

Breaking changes

  • Breaking: FileResponseSpec() now describes inline file responses
    and does not include Content-Disposition by default. Use
    FileResponseSpec(as_attachment=True) when returning Django's
    FileResponse(..., as_attachment=True), #1020

Migrations prompt

User-facing changes:

Change all existing ``dmr.files.FileResponseSpec`` usages
to include ``as_attachment=True`` parameter.

Features

  • Added support for JSON Schema 2020-12 dynamic reference keywords
    ($dynamicRef, $dynamicAnchor, $defs) in OpenAPI schema generation.
    These can now be propagated through extra_json_schema
    for generic type definitions, #1039

Misc

  • Use typing_extensions.Sentinel for dmr.types.EMPTY, #995
  • pyrefly@1.0 official support, #1015
  • mypy@2.0 and mypy@2.1 official support, #1013

New Contributors

Full Changelog: 0.9.0...0.10.0

Don't miss a new django-modern-rest release

NewReleases is sending notifications on new releases.