0.7.0 • Published 7 years ago

@teppeis/kintone-plugin-manifest-validator v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

kintone-plugin-manifest-validator

Validate manifest.json of kintone plugin. Used in kintone-plugin-packer.

npm version Node.js Version Support build status appveyor status dependency status License

How to install

$ npm install @teppeis/kintone-plugin-packer

Usage

const validator = require('@teppeis/kintone-plugin-manifest-validator');

const manifestJson = require('path/to/your/manifest.json');
const result = validator(manifestJson);
console.log(result.valid); // true or false
console.log(result.errors); // array of ajv error objects

ajv error objects is like:

{
  dataPath: '.version',
  keyword: 'type',
  message: 'should be integer',
  params: {
    type: 'integer',
  },
  schemaPath: '#/properties/version/type',
}

manifest-json.d.ts

import {KintonePluginManifestJson} from '@teppeis/kintone-plugin-manifest-validator/manifest-schema';

let manifest: KintonePluginManifestJson;

License

MIT License: Teppei Sato <teppeis@gmail.com>

0.7.0

7 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago