brandur / json_schema

A JSON Schema V4 and Hyperschema V4 parser and validator.
MIT License
230 stars 45 forks source link

Add support for Ruby 1.9 #45

Closed brandur closed 8 years ago

brandur commented 8 years ago

Keeps interface compatibility, but adds support for Ruby 1.9.

brandur commented 8 years ago

Alright, so technically this is a breaking change in that when using sub_errors on ValidationError's constructor you need to pass in an option instead of an additional parameter, but I'm not going to bump the major version because I think its use is likely to be almost entirely internal.

Let me know if anyone disagrees though of course!

Although Ruby 1.9 is EOL, I'm adding support for it back because it's really just this one method that breaks it.