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

--tags filter does not respect Markdown assigned to a tag #1759

Closed
a-mummey opened this issue Feb 9, 2024 · 0 comments
Closed

--tags filter does not respect Markdown assigned to a tag #1759

a-mummey opened this issue Feb 9, 2024 · 0 comments

Comments

@a-mummey
Copy link

a-mummey commented Feb 9, 2024

Describe the bug
I am including Markdown files associated with a specific tag like so:

// @tag.name  Inventory
// @tag.description.markdown
// @tag.name  Items
// @tag.description.markdown

Which gets included in the resulting Swagger just fine:
Screenshot 2024-02-09 at 12 41 04 PM

However when I run the command to only include certain tags like this:
swag init --md docs --parseInternal --parseDepth 2 --tags Orders

I still get the Markdown files included in the tags that I don't want, although the actual endpoints are filtered out.

To Reproduce
Steps to reproduce the behavior:

  1. Add a markdown file associated with a tag
// @tag.name  Inventory
// @tag.description.markdown
  1. Generate output with a different tag using the --tags flag

Expected behavior
Only markdown with the filtered tags should show be included in the output

Actual:
All defined markdown is included

Your swag version
swag version v1.16.3

Your go version
1.21.1

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