Build JSON schemas with Ruby