Basic json-schema generator in Ruby