module JsonTableSchema::Constraints::Maximum
Public Instance Methods
check_maximum()
click to toggle source
# File lib/jsontableschema/constraints/maximum.rb, line 5 def check_maximum if @value > parse_constraint(@constraints['maximum']) raise JsonTableSchema::ConstraintError.new("The field `#{@field['name']}` must not be more than #{@constraints['maximum']}") end true end