This package has been deprecated

Author message:

Please install @kintone/plugin-manifest-validator instead.

@teppeis/kintone-plugin-manifest-validator

0.7.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @teppeis/kintone-plugin-manifest-validator

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

11.1 kB

Total Files

6

Last publish

Collaborators

  • teppeis