Skip to content

nickel-lang/nickel-schemastore

 
 

Repository files navigation

Nickel schemastore

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.

Usage

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.

Regenerating the contracts

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.

About

Nickel contracts generated from Schemastore (schemastore.org)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • NCL 99.4%
  • Other 0.6%