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

Exclude routes #75

Closed
endafarrell opened this issue Dec 12, 2018 · 2 comments
Closed

Exclude routes #75

endafarrell opened this issue Dec 12, 2018 · 2 comments
Labels

Comments

@endafarrell
Copy link

#21 is closed, but its fix only half-works:

  • routes excluded with @doc.route(exclude=True) do not appear in the swagger UI, but,
  • they are listed (although empty) in the /openapi/spec.json

My expectation is that an "excluded" route would not appear in either the openapi/spec.json or the swagger UI.

@hampsterx
Copy link
Contributor

looks like it just needs a one liner to fix (line 144) ..

        if methods:
            paths[uri_parsed] = methods

(ie the if line)

@stale
Copy link

stale bot commented Jun 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is incorrect, please respond with an update. Thank you for your contributions.

@stale stale bot added the stale label Jun 19, 2019
@stale stale bot closed this as completed Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants