1.1.0 • Published 6 years ago

@metabin/schema-validator v1.1.0

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

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

SpecSupported
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

1.1.0

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago