Braise cooks those boring old JSON Schema definitions down into rock-hard-awesome Ember Data adapters and models.
Releases published on hex.pm at https://hex.pm/packages/braise.
Braise generates Ember Data adapters and models compatible with Ember Data 2.7+.
cd ~/src
git clone https://github.com/IoraHealth/braise.git
echo 'export PATH=$PATH:~/src/braise/bin' >> ~/.bash_profile
echo 'export PATH=$PATH:~/src/braise/bin' >> ~/.zshrc
$ braise [--file|-f] <JSON_SCHEMA_FILE>
Takes that boring JSON schema file and outputs some much better files.
- Ensure Elixir 1.4+ is installed. On macOS:
brew install elixir
. - Run
make
. See more targets in theMakefile
The examples dir has some input json schemas and the corresponding output produced by braise. To regenerate them
$ make samples
MIT. See LICENSE.md for full license text.