Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CLI usage #48

Closed
MattiSG opened this issue Jan 30, 2015 · 1 comment · Fixed by #49
Closed

Support CLI usage #48

MattiSG opened this issue Jan 30, 2015 · 1 comment · Fixed by #49

Comments

@MattiSG
Copy link
Contributor

MattiSG commented Jan 30, 2015

I would like to just $ jayschema my-schema.json :)

@natesilva
Copy link
Owner

You actually can do this! First, install globally:

[sudo] npm install -g jayschema

Then you will have a command-line utility:

$ jayschema 
Syntax: jayschema <instance> [<schema>]
    if <schema> is omitted, the <instance> will be validated
    against the JSON Schema Draft v4 meta-schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants