json-schema-models
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -30,2 +30,3 @@ 'use strict'; | ||
module.exports = internals.Datastore = class Datastore { | ||
@@ -89,7 +90,7 @@ | ||
var err, schemaName, valid; | ||
var formats = Object.keys(this.schema.formats); | ||
var formats = Object.keys(rawSchemas.formats); | ||
for (var e = 0, el = formats.length; e < el; ++e) { | ||
var name = formats[e]; | ||
var func = this.schema.formats[name].bind(this); | ||
var func = rawSchemas.formats[name].bind(this); | ||
this.zSchema.registerFormat(name, func); | ||
@@ -96,0 +97,0 @@ } |
{ | ||
"name": "json-schema-models", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "json schema based models", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.js", | ||
"neo-async": "1.x.x", | ||
"yajsv": "^0.3.2" | ||
"yajsv": "^0.3.3" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -7,4 +7,5 @@ 'use strict'; | ||
metaSchema: { | ||
description: 'invlaid defintion', | ||
description: 'invalid record schema', | ||
type: 'record', | ||
base: 'example', | ||
jsonSchema: 'v4', | ||
@@ -11,0 +12,0 @@ name: 'rec', |
@@ -9,2 +9,3 @@ 'use strict'; | ||
type: 'record', | ||
base: 'example', | ||
jsonSchema: 'v4', | ||
@@ -11,0 +12,0 @@ name: 'rec', |
@@ -112,2 +112,3 @@ // Load modules | ||
manager.schema.addSchemas(Schemas); | ||
manager.schema.addSchemas([InvalidRec]); | ||
@@ -114,0 +115,0 @@ manager.start(function (err, result) { |
24071
632
Updatedyajsv@^0.3.3