axnsan12 / drf-yasg

Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code.
https://drf-yasg.readthedocs.io/en/stable/
Other
3.42k stars 439 forks source link

Inquiry about custom schema generation in drf-yasg #886

Open AhnSeongHyun opened 5 months ago

AhnSeongHyun commented 5 months ago

I am encountering an issue with the #definitions section generated through custom schema generation in drf-yasg. Currently, the #definitions section is located under a single Schema object. However, this configuration causes errors in other Swagger validators and tools like hey-api Swagger to code generation tool, which fail due to this issue.

image

Is it possible to separate the #definitions section into a separate top-level object rather than under a single Schema object? Are there any settings or options available to achieve this?