Schemastore is a Nickel library containing contracts automatically generated from the schemastore's using json-schema-to-nickel. It is distributed through the (currently experimental) Nickel package manager.
Add the following field to the dependencies of your Nickel project manifest:
schemastore = 'Index { "github:nickel-lang/nickel-schemastore", version = "0.4.0" }Then import one of the available schema in any Nickel file of your project:
let PlatformShRoutes = (import schemastore)."Platform.sh routes" in
...The available contracts are visible in main.ncl.
The contracts as well as the main entry point main.ncl are generated by the
extract-schemas.py. Use nix develop to enter a shell with the required
environment set up and run python extract-schemas.py to regenerate the
contracts and the main library file.