json-spec
v0.5.0
Published
A CoffeeScript/JavaScript DSL for defining, documenting and validating JSON structures
Readme
For a demonstration, run:
coffee example/spec.coffee > example/spec.jsonto generate a JSON representation of the example specification from the CoffeeScript-based DSL.
coffee lib/json-spec.coffee validate example/spec.json example/invalid-data.jsonto validate a (invalid) JSON data file against that specification.
coffee lib/json-spec.coffee validate example/spec.json example/valid-data.jsonto validate a (valid) JSON data file against that specification.
coffee lib/json-spec.coffee to-markdown example/spec.json > example/spec.mdto generate a Markdown document describing the specifcation.
coffee lib/json-spec.coffee to-markdown example/spec.json | marked > example/spec.htmlto generate an HTML representation of that Markdown document.
