README
schema.js
A schema validation and filtering framework for node.js
It's a fork of conform.js which
extends him with $ref
option.
Example
The core of schema.js
is simple and succinct: validator.validate(obj, schemaId)
or simply
validator.validate(obj, schema)
:
var validator = require('schema.js').validator;
var schema = {
properties: {
url: {
description: 'the url the object should be stored at',
type: 'string',
pattern: '^/[^#%&*{}\\:<>?\/+]+