mattfrear/Swashbuckle.AspNetCore.Filters

SwaggerRequestExample does not generate examples

karygauss03 opened this issue · 1 comments

I am using [SwaggerRequestExample] from Swashbuckle.AspNetCore.Filters to generate examples to my schemas definition in the swagger file. But I got only a new field in each schema named additionalProperties: false and I don't know why I got this result instead of getting my examples.

I followed the tutorial provided in the documentation and I have tried the XML solution, but nothing works.

Hello
I don't use this filter on new projects myself any more, as using XML comments is usually adequate. Have you tried that?
https://mattfrear.com/2020/04/21/request-and-response-examples-in-swashbuckle-aspnetcore/

If you need to use the filter for some reason, then I can help you with that. Please post your example controller action method, your example, and your AddSwaggerGen method.