Method: SimpleJSONSchema::Checker.at_size

Defined in:
lib/simple_json_schema/checker.rb

.at_size(scope, check, operation) ⇒ Object



15
16
17
18
# File 'lib/simple_json_schema/checker.rb', line 15

def at_size(scope, check, operation)
  over = scope[check]
  scope.error(check, count: over) if over && scope.value&.size&.public_send(operation, over)
end