lib/cocina/models/validators/validator.rb in cocina-models-0.91.4 vs lib/cocina/models/validators/validator.rb in cocina-models-0.92.0
- old
+ new
@@ -13,10 +13,11 @@
AssociatedNameValidator,
# Removing until production data can be remediated and/or additional types can be added to configuration.
# See also spec/cocina/models/validatable_spec.rb:59
# DescriptionTypesValidator,
DescriptionValuesValidator,
- DateTimeValidator
+ DateTimeValidator,
+ LanguageTagValidator
].freeze
def self.validate(clazz, attributes)
# This gets rid of nested model objects.
attributes_hash = attributes.to_h.deep_transform_values do |value|