Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
/ grunt-jsv Public archive

A Grunt Task for validating JSON files using JSV.

License

Notifications You must be signed in to change notification settings

jahed/grunt-jsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-jsv

Build Status NPM Release Patreon

A Grunt Task for validating JSON files using JSV.

Getting Started

# Add the module to your project
npm install grunt-jsv --save-dev
// Load the module in your Gruntfile
grunt.loadNpmTasks('grunt-jsv');

Of course, you'll need to be using Grunt

Usage

// Configure the task by providing schemas with JSON files to validate
grunt.config.init({
    // ...
    jsv: {
        your_target: {
            files: {
                'schema/your-schema.json': ['json/*.json']
            }
        }
    }
    // ...
});
# Run the task
grunt jsv

Schema Support

JSV includes support upto draft v3 of the JSON Schema specification. This plugin will not work with new changes and functionality introduced in draft v4 and beyond.

License

Copyright (c) 2014 Jahed Ahmed

Licensed under the MIT license.

About

A Grunt Task for validating JSON files using JSV.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published