drf-yasg icon indicating copy to clipboard operation
drf-yasg copied to clipboard

Generator cli

Open agalazis opened this issue 3 years ago • 1 comments

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.

agalazis avatar Jan 26 '22 08:01 agalazis

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.

PaulWay avatar Feb 07 '22 03:02 PaulWay