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 my model (I want to hide Skip field in Swagger):
And this is my action :