Validator

public protocol Validator

A protocol for validating objects. This protocol defines a method to validate an object and return an array of validation errors. The validate method should be implemented by conforming types to perform the validation logic.