emanueleminotto / schemer
json-schema.org based validation and formatting
dev-master
2015-09-20 11:28 UTC
Requires
- guzzlehttp/guzzle: ~5.2
- justinrainbow/json-schema: ~1.3
- kherge/box: ^2.5
- symfony/console: ~2.6
- symfony/finder: ~2.6
Requires (Dev)
- phpunit/phpunit: ~4.5
This package is auto-updated.
Last update: 2024-11-28 07:11:56 UTC
README
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.