Swashbuckle.AspNetCore.Filters
Swashbuckle.AspNetCore.Filters copied to clipboard
AppendAuthorizeToSummaryOperationFilter - Styling
Hi,
We are using your filter as described in the subject. We do notive that it is just 'pasted' after the description. This is working of course, but just not that clear.
Some suggestions would be to add a
in front of it, so the policy description is always on a new line. Not sure if SwaggerUI is allowing that, but merely a suggestion.
Also, isn't there a way to have it shown in the 'lock' icon pop-up when that one is clicked? Currently that is empty, but it would be the ideal place to have it listed
Hi I did play with the styling a little bit when I last used this filter... I think it didn't look as good to have the policy on a newline. I haven't actually used this filter for a couple of years. Looking at it, I think I wrote that filter before I knew how to define the authentication properly (i.e. to get the lock icon next to an API action). Yeah, it would be nice to have the auth info on the lock icon, but that is controlled by swagger-ui so I don't know if it's possible - it might be.
Like I say, I haven't used this filter in a couple of years, and I don't have much free time these days, so I'm not going to play around with it. I'll leave this issue open for now so that if you or anyone else in "the community" wants to submit a PR, you are welcome to do so.