Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Types that have been filtered out still get into the schema
I'm not completely sure if it's a bug, or it's like this by design, but it certainly feels strange to me.
Say, I inject a parameter via a custom ModelBinder
attribute. Then I explicitly filter it out in an IOperationFilter
. Now, none of the endpoints know about it, yet it still ends up in the schema.
See a minimal repro / example here.