JsonPatchDocument Not getting displayed properly in Asp.Net Core 3.1 Web API Swagger

Viewed 335

I have my API documented and versioned previously using Swashbuckle.AspNetCore, Microsoft.AspNetCore.Mvc.Api.Analyzers, Microsoft.AspNetCore.Mvc.Versioning and Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer.

Everything was fine but all of a sudden today I noticed that JsonPatchDocument Not getting displayed properly in my swagger. I couldn't figure out what's the root cause. But I suspect some Nuget Package Upgrade?

Previously I remember the JsonPatchDocument in my swagger as something similar below:

{
   "Operations": [
     {
       "value": {},
       "path": "string",
       "op": "string",
       "from": "string"
     }
   ]
}

But now it shows something else,

{
  "ContractResolver": {}
}

Please assist on what I'm missing

0 Answers
Related