Sha256: aa75e3d818a33f97d28dcf8f2fb49a1f9d1b421e8477bc8e376ff80722d04b40

Contents?: true

Size: 489 Bytes

Versions: 7

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    module Validators
      # Perform validation against all other Validators
      class Validator
        VALIDATORS = [
          OpenApiValidator,
          DarkValidator,
          CatalogLinksValidator,
          DescriptionTypesValidator
        ].freeze

        def self.validate(clazz, attributes)
          VALIDATORS.each { |validator| validator.validate(clazz, attributes) }
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cocina-models-0.73.6 lib/cocina/models/validators/validator.rb
cocina-models-0.73.5 lib/cocina/models/validators/validator.rb
cocina-models-0.73.4 lib/cocina/models/validators/validator.rb
cocina-models-0.73.3 lib/cocina/models/validators/validator.rb
cocina-models-0.73.2 lib/cocina/models/validators/validator.rb
cocina-models-0.73.1 lib/cocina/models/validators/validator.rb
cocina-models-0.73.0 lib/cocina/models/validators/validator.rb