django-rest-framework
django-rest-framework copied to clipboard
Add --version CLI option to generateschema
Description
Adds support for --version
CLI argument to generateschema
management command.
refs #8551
Seems ok.
Thanks!
Right, I need to be a bit tedious here. Looks like this change introduced a failing CI under Python 3.6.
See here: https://github.com/encode/django-rest-framework/actions/runs/3097673683/jobs/5014619905
I don't understand what the issue is, but it'd need to be resolved in order for us to merge this. Until then I've reverted this with #8661.
I know. Boring. 😑
Well... this is awkward.
I'll take care of this later on and open a new PR.
Sorry for the inconvenience.
Yep this is on me.
It conflicts with the version
arg in the management BaseCommand.
For now, I'm renaming it to api_version
as it indicates the API's version that is present in the generated schema.