<PackageReference Include="NJsonSchema" Version="11.3.2" />

NJsonSchema.Infrastructure.PropertyRenameAndIgnoreSerializerContractResolver

public class PropertyRenameAndIgnoreSerializerContractResolver : DefaultContractResolver
JsonConvert resolver that allows to ignore and rename properties for given types.

Initializes a new instance of the PropertyRenameAndIgnoreSerializerContractResolver class.

public void IgnoreProperty(Type type, string[] jsonPropertyNames)

Ignore the given property/properties of the given type.

public void RenameProperty(Type type, string propertyName, string newJsonPropertyName)

Rename a property of the given type.