drf-yasg
drf-yasg copied to clipboard
Generator cli
Feature Request
Description
I want to validate / generate json schema on commit
Describe the solution you'd like
We could have some sort of cli that given a username can generate the docs for the given user
Describe alternatives you've considered
Running the whole server requesting the json with a specific user. But that's not optimal I don't want to deal with credentials etc.
There are other OpenAPI 2 and OpenAPI 3 schema validator libraries out there :-) You can either import them into a test suite and run tests that way. I also have tests that make a request to the Swagger endpoint, decode the JSON and check various properties - e.g. that parameters have a description.