Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command generate_swagger should accept version information #2

Closed
joeribekker opened this issue Jan 11, 2019 · 1 comment
Closed

Command generate_swagger should accept version information #2

joeribekker opened this issue Jan 11, 2019 · 1 comment

Comments

@joeribekker
Copy link
Collaborator

https://github.com/VNG-Realisatie/gemma-zaken-common/blob/c4e75bfbb1a89c1a67e4ddd5192900264437b141/zds_schema/management/commands/generate_swagger.py#L92-L95

Workaround was to add the urlconf here:

        generator = OpenAPISchemaGenerator(
            info=info,
            url=api_url,
            urlconf='demo_api.api.v2.urls'
        )

But I noticed the original code allowed for a version to be passed. Not sure if that worked tho.

@sergei-maertens
Copy link
Collaborator

ec781d3 fixed this by inheriting the full signature of the original command (and updated to a more recent version of drf-yasg)

SonnyBA added a commit that referenced this issue Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants