Contents

drf-yasg 1.21.7

0

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.

Stars: 3401, Watchers: 3401, Forks: 438, Open Issues: 261

The axnsan12/drf-yasg repo was created 6 years ago and the last code push was 4 weeks ago.
The project is very popular with an impressive 3401 github stars!

How to Install drf-yasg

You can install drf-yasg using pip

pip install drf-yasg

or add it to a project with poetry

poetry add drf-yasg

Package Details

Author
Cristi V.
License
BSD License
Homepage
https://github.com/axnsan12/drf-yasg
PyPi:
https://pypi.org/project/drf-yasg/
GitHub Repo:
https://github.com/axnsan12/drf-yasg

Classifiers

  • Documentation
  • Software Development/Code Generators
No  drf-yasg  pypi packages just yet.

Errors

A list of common drf-yasg errors.

Code Examples

Here are some drf-yasg code examples and snippets.

GitHub Issues

The drf-yasg package has 261 open issues on GitHub

  • Generator cli
  • Change responses typing
  • cannot add form parameters when the request has a request body
  • ruamel.yaml 0.17.0 has deprecated dump(), load()
  • Swagger Auto Schema Decorator doesn't work
  • Not able to group any ListAPIView using Tags
  • Django 4.0 File Not Found Error
  • How to update the openapi schema in drf-yasg to sync with the custom standard response?
  • Allow specifying response as a reference
  • yasg requires serializer_class
  • Cover all responses to following implemented standard api response
  • [Feature Request] Pydantic Support for Request body, Response & Query Parameters
  • Fields get shown as required in PATCH
  • Add checker for allow_null attr
  • Is there a way to get field title from serializer / model docstrings ?

See more issues on GitHub

Related Packages & Articles

fastapi 0.115.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

apispec 6.6.1

A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).