JSON Schema for validating Chrome extension manifest.json
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
schemas
test
.gitignore
.npmignore
Gruntfile.coffee
LICENSE
README.md
manifest.schema.cson
package.json

README.md

chrome-extension-manifest-schema

JSON Schema for validating Chrome extension manifest.json

This module provides a JSON Schema (v4) that describes Chrome extension manifest.json files. To validate a JSON file against the schema, you will need to use a JSON Schema validator with v4 support.

Example using the TV4 validator via the grunt-tv4 plugin to validate a "manifest.json" file:

# Gruntfile.coffee

module.exports = (grunt) ->
  grunt.initConfig
    tv4:
      manifest:
        src: "manifest.json"
        options:
          root: require('chrome-extension-manifest-schema')

  grunt.loadNpmTasks "grunt-tv4"
  grunt.registerTask 'default', 'tv4'