def valid?
      errors.clear

      validators.each do |validator|
        validator.validate(self)
      end

      errors.empty?
    end
def valid?
      errors.clear

      validators.each do |validator|
        validator.validate(self)
      end

      errors.empty?
    end
Determine if the current resource is valid. This relies on the
 validations defined in the schema at initialization.

 @return [Boolean]
   true if the resource is valid, false otherwise