@metabin/schema-validator

1.1.0 • Public • Published

Metabin Schema Validator

Metabin schemas / data validation tool

Installation

> npm install @metabin/schema-validator --save
<script src="https://unpkg.com/@metabin/schema-validator/dist/umd.js"></script>

Specs supported

Spec Supported
v1 +

Usage

import { validateSchema } from '@metabin/schema-validator'

const schemaObj = {
  "field1": "boolean",
  "field2": [[ 'e', 'n', 'u', 'm' ]]
}

const { valid } = validateSchema(schemaObj)

console.log(valid)

// > true

License

MIT

Package Sidebar

Install

npm i @metabin/schema-validator

Weekly Downloads

6

Version

1.1.0

License

MIT

Last publish

Collaborators

  • negamaxi