-
Notifications
You must be signed in to change notification settings - Fork 463
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
Swagger: Adds option to skip default tags #881
Conversation
davidwessman
commented
May 30, 2023
- This option allows the resource tags to be manually specified
- Fixes [Feature request] Remove default tags from generated swagger json #759
[@method_description.resource._id] + | ||
warning_tags + | ||
@method_description.tag_list.tags | ||
tags = if Apipie.configuration.generator.swagger.skip_default_tags? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it should be called skip_default_resource_tag
since it still allows warning_tags? (Which has a separate config)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken swagger tags are only used in endpoints so I guess it's ok to leave it as is, fine by me either way.
@PanosCodes can you please review this Swagger related change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[@method_description.resource._id] + | ||
warning_tags + | ||
@method_description.tag_list.tags | ||
tags = if Apipie.configuration.generator.swagger.skip_default_tags? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken swagger tags are only used in endpoints so I guess it's ok to leave it as is, fine by me either way.
- This option allows the resource tags to be manually specified - Fixes Apipie#759
6546417
to
5de619a
Compare
@PanosCodes Fixed the rubocop warnings and rebased 🙂 |