Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
OTHER License
Bot releases are visible (Hide)
Published by axnsan12 over 6 years ago
type
for ChoiceField
generated by a ModelSerializer
from a model field with choices=...
will now be set according to the associated model field (#69)lookup_field
and lookup_value_regex
on the same ViewSet
will no longer trigger an (#68)Published by axnsan12 over 6 years ago
default
argument to openapi.Parameter.__init__
to be ignoredPublished by axnsan12 over 6 years ago
ModelViewSet
generated from models with nested ForeignKey
to output models named Nested
into the definitions
section (#59, #65)Response
objects without a schema
are now properly handled when passed through swagger_auto_schema
(#66)Published by axnsan12 over 6 years ago
coerce_to_string
is now respected when setting the type, default value and min/max values of DecimalField
in the OpenAPI schema (#62)TemplateHTMLRenderer
instead of throwing confusing errors (#58)swagger-ui
to version 3.10.0ReDoc
to version 1.21.0Published by axnsan12 over 6 years ago
swagger-ui
(#53)swagger-ui
to version 3.9.3Published by axnsan12 over 6 years ago
produces
based on renderer classesconsumes
and produces
based on DEFAULT_PARSER_CLASSES
and DEFAULT_RENDERER_CLASSES
(#48)Published by axnsan12 over 6 years ago
swagger-ui
Try it out! (#50, #54)swagger-ui
to version 3.9.2ReDoc
to version 1.20.0Published by axnsan12 almost 7 years ago
Published by axnsan12 almost 7 years ago
Fixed some deployment issues.
Published by axnsan12 almost 7 years ago
basePath
is now generated by taking into account the SCRIPT_NAME
variable and theNamespaceVersioning
by excluding endpoints of differing versions (i.e. when accesing the schema view for v1, v2 endpoints will not be included in swagger)Published by axnsan12 almost 7 years ago
Vary
on the Cookie
and Authentication
(theVary
header was previously only added if public
was set to True
) - this fixes issues related to Django authentication in swagger-ui
and CurrentUserDefault
values in the schemaPublished by axnsan12 almost 7 years ago
swagger-ui
to version 3.8.1Published by axnsan12 almost 7 years ago
\Z
regex tokens - will now be repalced by $
Published by axnsan12 almost 7 years ago
URLPathVersioning
or NamespaceVersioning
operation_id
parameter to @swagger_auto_schema
djangorestframework-camel-case
(#28)title
to never be generated for Schemas; title
is now correctly populated from the field's label
propertyPublished by axnsan12 almost 7 years ago
default
values on serializer fields will now be properly called (#24, #25)swagger-ui
to version 3.8.0PrimaryKeyRelatedField
and SlugRelatedField
will now havepublic=False
(#23)Published by axnsan12 almost 7 years ago
swagger-ui
to version 3.7.0FileField
is now generated as an URL or file name in response SchemasPublished by axnsan12 almost 7 years ago
First version.
Published by axnsan12 almost 7 years ago
Published by axnsan12 almost 7 years ago
query_serializer
parameter to swagger_auto_schema
(#16, #17)