luboshl / MiniValidationPlus

Validation library based on System.ComponentModel.DataAnnotations with non-nullable reference types support.
MIT License
0 stars 0 forks source link

Standard and custom attributes to ignore validation of given property #14

Open luboshl opened 1 month ago

luboshl commented 1 month ago

Similar to #13 there is a requirement to be able to disable validations of properties based on some attributes. That can be System.Text.Json.JsonIgnoreAttribute , System.Runtime.Serialization.IgnoreDataMemberAttribute or any custom attribute.

The goal is to be able to set a collection of attributes in validation configuration.

Kraviecc commented 1 month ago

Just a hint: I don't know if you'd like to use the existing attributes from other libraries as they are developed independently and have a different lifecycle.