CLI utility for serving JSON-Schema with faking support
JavaScript CoffeeScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.editorconfig
.eslintrc
.gitattributes
.gitignore
.npmignore
.travis.yml
README.md
package-lock.json
package.json

README.md

JSON-Schema Server

Build Status NPM version Coverage Status

Dependency Status devDependency Status

Install json-schema-server globally:

$ npm install -g json-schema-server

Then starts a server for your JSON-Schema files:

$ json-schema-server [dir] -p 5000

Now you can make requests through the created server:

$ http http://localhost:5000/path/to/schema

The better if you're using httpie. 🍻

Options

  • --fakeroot → BaseURI for references that will fake (default: http://json-schema.org).
  • --formats → CommonJS module-id or path for custom formats.
  • --silent → Turns off the reporting through the STDOUT.
  • --port → Custom port for the server (default: 3000).

If no dir is provided process.cwd() will be used instead.

Run json-schema-server -h to display all usage info.

Bitdeli Badge