Hi,
I am trying to remove a property from an object I return.
Adding “[ApiMember(ExcludeInSchema = true)]” only removes it in the swagger docs, but I like to completely remove it,
Greetings
Andre
Hi,
I am trying to remove a property from an object I return.
Adding “[ApiMember(ExcludeInSchema = true)]” only removes it in the swagger docs, but I like to completely remove it,
Greetings
Andre
Use [IgnoreDataMember]
to ignore properties from serialization + metadata.