Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-json-schema-validation

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-json-schema-validation

Grunt wrapper for validating JSON Schema.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

grunt-json-schema-validation

Grunt wrapper for validating JSON Schema.

Getting Started

This plugin requires Grunt ~0.4.5

Install this plugin with:

npm install grunt-json-schema-validation --save-dev

Add this line to your project's grunt.js Gruntfile:

grunt.loadNpmTasks('grunt-json-schema-validation');

Usage

In your project's Gruntfile, add a section named json_schema_validation to the data object passed into grunt.initConfig().

grunt.initConfig({
  json_schema_validation: {
    options: {
      files: ['test/files/*.json'],
      schema: {
        main: 'test/schemas/person.json'
      }
    }
  }
});

Options

files

Type: Array

An array of json files to be validated.

schema.main

Type: String

The main schema against which the files will be validated.

schema.refs

Type: Array

The references that may exist inside of the main schema.

Keywords

FAQs

Package last updated on 06 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc