Closed iainbeeston closed 7 years ago
JSON::Validator#validate! is the accepted way to validate and raise exceptions if the data is invalid, but there is also the #validate2 method. From my point of view this is a legacy method and I think we should encourage people to use #validate!
JSON::Validator#validate!
#validate2
#validate!
JSON::Validator#validate!
is the accepted way to validate and raise exceptions if the data is invalid, but there is also the#validate2
method. From my point of view this is a legacy method and I think we should encourage people to use#validate!