Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Types that have been filtered out still get into the schema

Open AntonC9018 opened this issue 1 year ago • 1 comments

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.

AntonC9018 avatar Apr 12 '23 15:04 AntonC9018