PreSerialize filter for filtering of swagger JSON per operation tags by query params #92
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PreSerialize filter to be filtering swagger document per operation tags
If you ever build large microservices and have multiple swaggers distributed throughout services, you may want to filter multiple swagger documents by tags.
For example both if several services serve single business domain, and concrete requirements are to aggregate swagger documents from mutiple services and show them to end user grouped as a single swagger, this filter becomes very usable.
I used this in 4 projects already. I send /swagger.json?tags=param1%2Cparam2 etc. and Swashbuckle returns me only those that have these respective tags.
Then I used a single aggregator service to create new swagger json (not connected to Swashbuckle or any other swagger generating library or service).