voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 242 forks source link

Deprecated `JSON::Validator#validate2` #336

Closed iainbeeston closed 7 years ago

iainbeeston commented 8 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!