class SimpleJSONSchema::Validators::Null

Public Instance Methods

validate(scope) click to toggle source
# File lib/simple_json_schema/validators/null.rb, line 6
def validate(scope)
  scope.error(:null) unless scope.value.nil?
end