Sane and flexible OpenAPI 3 schema generation for Django REST framework
Sane and flexible OpenAPI 3.0 schema generation for Django REST framework.
This project has 3 goals:
Extract as much schema information from DRF as possible.
Provide flexibility to make the schema usable in the real world (not only toy examples).
Generate a schema that works well with the most popular client generators.
The code is a heavily modified fork of the
DRF OpenAPI generator,
which is/was lacking all of the below listed features.
Features
Serializers modelled as components. (arbitrary nesting and recursion supported)
@extend_schema decorator for customization of APIView, Viewsets, function-based views, and @action
additional parameters
request/response serializer override (with status codes)
polymorphic responses either manually with PolymorphicProxySerializer helper or via rest_polymorphics PolymorphicSerializer)
and more customization options
Authentication support (DRF natives included, easily extendable)
Custom serializer class support (easily extendable)
Ser
- RPM
- python3-drf-spectacular-0.28.0-2.lbn42.noarch.rpm
- Summary
- Sane and flexible OpenAPI 3 schema generation for Django REST framework
- URL
- https://pypi.org/project/drf-spectacular
- Group
- Application/Internet
- License
- ZPL
- Source
-
python-drf-spectacular-0.28.0-2.lbn42.src.rpm
- Checksum
- c682a5f864190b3cb1b9cb7f015b826ce1b64796ddfbe23d7a78cb7d52d28a31
- Build Date
- 2025/09/13 02:42:42
- Requires
-
python3.13dist(django) >= 2.2
python3.13dist(djangorestframework) >= 3.10.3
python3.13dist(inflection) >= 0.3.1
python3.13dist(jsonschema) >= 2.6
python3.13dist(pyyaml) >= 5.1
python3.13dist(uritemplate) >= 2
- Provides
-
python-drf-spectacular = 0.28.0-2.lbn42
python3-drf-spectacular = 0.28.0-2.lbn42
python3.13-drf-spectacular = 0.28.0-2.lbn42
python3.13dist(drf-spectacular) = 0.28
python3dist(drf-spectacular) = 0.28
- Obsoletes