Skip to content

EmanueleMinotto/schemer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

schemer

Build Status SensioLabs Insight Coverage Status Scrutinizer Code Quality Total Downloads

A command line tool that helps you validating and formatting JSON configuration files. File formatting is based on a JSON schema file.

Supported shortcuts (validation and formatting):

Install

Install the schemer CLI tool adding emanueleminotto/schemer to your global composer.json or from CLI:

$ composer global require emanueleminotto/schemer

Attention! Remember to add $COMPOSER_HOME/vendor/bin to your $PATH (ref).

Usage

# validation ...
$ schemer validate https://raw.githubusercontent.com/composer/composer/master/res/composer-schema.json composer.json
# ... with use shortcuts
$ schemer validate:bower bower.json

# formatting ...
$ schemer format https://raw.githubusercontent.com/composer/composer/master/res/composer-schema.json composer.json
# ... with use shortcuts
$ schemer format:bower bower.json

# schemer available commands
$ schemer list

Testing

$ vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.

About

json-schema.org based validation and formatting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published