voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.54k stars 243 forks source link

Simplified `#validator_for` methods #346

Closed iainbeeston closed 8 years ago

iainbeeston commented 8 years ago

Right now there is:

But in reality all delegate to either #validator_for_uri or #validator_for_name. This is confusing, and obfuscates what's really going on.

I've removed #validators_for_names (which was a private method anyway) and deprecated the alias of #validator_for.