What is suggested here removes the property from the generated swagger json but what I want is to a hide the property from the response of API call (eg. GET) based on the which API version the call gets made with.
Attributes like [JsonIgnore]
doesn't help me with my question.
Any ideas