0

There are multiple solutions for hiding a model property from swagger if you're sending data via Body with POST request.

But in Get Request None of the solutions work.

For Example : Creating a new Attribute, Using [JsonIgnore], [Obsolete] etc.

So I need a method to hide this 'Skip' Field both Post request body or Get request query string.

You can see the situation below.

This is how swagger looks like : This is how request looks.

This is my model (I want to hide Skip field in Swagger):

This is my model

And this is my action :

This is how I'm calling

Kadir Kalkan
  • 248
  • 2
  • 10

0 Answers0