4 ms·
If anyone finds JSON Schema in Ruby to be too slow, I developed a Ruby-based schema system that is much faster: http://rubygems.org/gems/classy_hash http://rub
by nitrogen 12y ago
If anyone finds JSON Schema in Ruby to be too slow, I developed a Ruby-based schema system that is much faster:
http://rubygems.org/gems/classy_hash http://rubygems.org/gems/classy_hash
https://github.com/deseretbook/classy_hash https://github.com/deseretbook/classy_hash
I wrote it for an internal backend system at a small ecommerce site with a large retail legacy.
Edit: Ruby Hashes (the base "language" used by Classy Hash) aren't easily serialized and shared, but if there's enough interest, it would be possible to compile most JSON Schema schemas to Classy Hash schemas.
- alexatkeplar 12y agoHave you looked contracts.ruby (https://github.com/egonSchiele/contracts.ruby https://github.com/egonSchiele/contracts.ruby)? I'm sure you could overlap some code
- nitrogen 12y agoInteresting. It looks like contracts.ruby does for method calls what Classy Hash aims to do for API data.