A simple validator to validate jsonb
columns against a JSON schema. It's dependent on
the json-schema gem, make sure to add gem 'json-schema'
to your Gemfile and run $ bundle
.
To use this, add json_validator.rb
to app/models/concerns
and json_validator_spec.rb
to spec/models/concerns
. By
convention, schemas are stored in app/models/json_schemas
.