Closed freeranger closed 6 years ago
Oops, wrong repo ;)
@freeranger hi there, so what did you do finally to solve this problem?
I don't really support this NuGet package anymore.
The Swashbuckle.AspNetCore.Filters package supports JsonPatch - if you look at my answer on this issue it might work for Swashbuckle.Examples.
https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters/issues/44
Ok, I'll take a look at it, thanks for the quick reply.
Hi,
I have decorated different actions in different controllers with: [SwaggerRequestExample(typeof(JsonPatchDocument), typeof(PatchTypeOneExample))]
and [SwaggerRequestExample(typeof(JsonPatchDocument), typeof(PatchTypeTwoExample))]
ie, the input type is the same - JsonPatchDocument, but the example values are quite different, because they are patching different types of resources.
In my swagger docs though I am seeing the PatchTypeOneExample for both. Is this a bug in the code, or is there some way to override the behaviour?
thanks