Closed a-mummey closed 6 months ago
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:
However when I run the command to only include certain tags like this: swag init --md docs --parseInternal --parseDepth 2 --tags Orders
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:
// @tag.name Inventory // @tag.description.markdown
--tags
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
Describe the bug I am including Markdown files associated with a specific tag like so:
Which gets included in the resulting Swagger just fine:![Screenshot 2024-02-09 at 12 41 04 PM](https://github.com/swaggo/swag/assets/869613/b3e4fcd5-e143-4938-815d-ea79e9f159f4)
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:
--tags
flagExpected 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