Skip to content
Validate JSON documents with Jassi.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tasks
test
.gitignore
Gruntfile.js
LICENSE
README.md
package.json

README.md

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'
  }
});
Something went wrong with that request. Please try again.