lib/meta/json_schema/support/validators.rb in meta-api-0.0.6 vs lib/meta/json_schema/support/validators.rb in meta-api-0.0.7
- old
+ new
@@ -26,10 +26,10 @@
next if value.nil?
raise JsonSchema::ValidationError, I18n.t(:'json_schema.errors.format') unless value =~ format
},
allowable: proc { |value, allowable_values|
next if value.nil?
- raise JsonSchema::ValidationError, I18n.t(:'json_schema.errors.allowable') unless allowable_values.include?(value)
+ raise JsonSchema::ValidationError, I18n.t(:'json_schema.errors.allowable', allowable_values: allowable_values) unless allowable_values.include?(value)
}
}
class << self
def [](key)