Class: SimpleJSONSchema::Validators::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/simple_json_schema/validators/null.rb

Instance Method Summary collapse

Methods inherited from Base

#valid

Instance Method Details

#validate(scope) ⇒ Object



6
7
8
# File 'lib/simple_json_schema/validators/null.rb', line 6

def validate(scope)
  scope.error(:null) unless scope.value.nil?
end