Validating JSON Schemas with an RSpec Matcher
https://robots.thoughtbot.com/validating-json-schemas-with-an-rspec-matcher
Use RSpec and JSON Schema to create a test-driven process in which changes to the structure of your JSON API drive the implementation of new features.