0.1.0 • Published 11 years ago

grunt-jassi v0.1.0

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

grunt-jassi

Validate JSON documents with Jassi.

Getting Started

Install this grunt plugin next to your project's Gruntfile.js with this command:

npm install grunt-jassi

Then add this line to the Gruntfile.js file:

grunt.loadNpmTasks('grunt-jassi');

Jassi task

Run this task with the grunt jassi command.

This task is a multi task so any targets, files and options should be specified according to the multi task documentation.

Options

schema

Type: String Default: empty string

Specifies the path to a file containing the JSON schema needed to validate the data against.

Usage example

In this example, running grunt jassi will validate the src/data.json document against the src/schema.json schema.

// Project configuration.
grunt.initConfig({
  jassi: {
  	options: {
  		schema: 'src/schema.json'
  	}
    src: 'src/data.json'
  }
});