This is a mountable Rails engine aiming to provide the ability to model Json Schema objects and provide a source to load those schemas by id and reference.
Eventually, there's going to be validation in there, too.
Eventually.
Currently, only tested against Postgresql
Add this line to your application's Gemfile:
gem "json_schema", github: "kryptykphysh/json-schema-rails-engine", branch: "schemas"Note: This is still very much in development
And then execute:
$ bundleEdit your config/routes.rb file to mount the engine at the desired endpoint:
mount JsonSchema::Engine, at: "/json_schema"Copy the migrations from the engine in to your application.
bundle exec rails json_schema:install:migrationsThen, migrate as normal:
./bin/rails db:migrateContribution directions go here.
The gem is available as open source under the terms of the MIT License.