This is a little repo demonstrating the usage of how a JSON schema can be easily modularised.
First and foremost, these files can be easily served via the Sinatra webservice that has been included in this repo. Thus to run this you will need to meet the requirements for running a Sinatra app.
i.e.
- ruby installed
- access to rubygems
- bundler installed
From the directory root run the following.
be thin start -p 8040
These files can be easily got via referencing the applicable URI.
Variables used in following explanations
- $PORT = port set when starting the sinatra app
curl -G http://localhost:$PORT/base-schema.json
http://localhost:$PORT/base-schema.json