grunt-jassi

0.1.0 • Public • Published

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'
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-jassi

Weekly Downloads

2

Version

0.1.0

License

https://github.com/iclanzan/grunt-jassi/blob/master/LICENSE

Last publish

Collaborators

  • iclanzan