validate
fun validate(mapper: ObjectMapper, resource: String, resourceType: Class<*>, policies: List<FieldPolicy>): List<MaskingContractViolation>
Return
the contract violations; empty means every matched policy is type-safe.
Parameters
mapper
The application's mapper, used to introspect resourceType the same way masking will at runtime.
resource
The resource name, used only to label violations.
resourceType
The @IhawuResource-annotated class the policies apply to.
policies
The field policies to check (typically every role's rules for resource).