lib/json-schema/attributes/multipleof.rb in json-schema-2.2.5 vs lib/json-schema/attributes/multipleof.rb in json-schema-2.3.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'json-schema/attribute'
+
module JSON
class Schema
class MultipleOfAttribute < Attribute
def self.validate(current_schema, data, fragments, processor, validator, options = {})
if data.is_a?(Numeric)
@@ -11,6 +13,6 @@
end
end
end
end
end
-end
\ No newline at end of file
+end