wadofgum-json-schema
Advanced tools
Comparing version 1.0.0 to 1.1.0
## Changelog | ||
+ 1.1.0 - added coveralls | ||
+ 1.0.1 - updated devDependencies and travis file | ||
+ 1.0.0 - major update due to major bump in wadofgum, meta set has been removed upstream so constructor props for class used to store schema, validator and meta about model | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "wadofgum-json-schema", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "json schema validation for wadofgum models", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "lab -a code -v -t 100 -L" | ||
"test": "lab -a code -v -t 100 -L", | ||
"coveralls": "lab -r lcov | coveralls" | ||
}, | ||
@@ -25,10 +26,9 @@ "repository": { | ||
"devDependencies": { | ||
"code": "^2.1.0", | ||
"lab": "^10.0.0", | ||
"code": "^3.0.0", | ||
"coveralls": "^2.11.9", | ||
"lab": "^10.7.1", | ||
"wadofgum": "^5.1.0", | ||
"z-schema": "^3.16.0" | ||
"z-schema": "^3.17.0" | ||
}, | ||
"dependencies": { | ||
"z-schema": "^3.16.1" | ||
} | ||
"dependencies": {} | ||
} |
## wadofgum-json-schema [](https://travis-ci.org/simon-pr/wadofgum-json-schema) | ||
[](https://coveralls.io/github/simon-p-r/wadofgum-json-schema?branch=master) | ||
@@ -3,0 +4,0 @@ A validation mixin for [wadofgum](https://github.com/nlf/wadofgum) using [z-schema](https://github.com/zaggino/z-schema). |
@@ -8,6 +8,4 @@ 'use strict'; | ||
const ZSchema = require('z-schema'); | ||
const Validator = new ZSchema(); | ||
// Fixtures | ||
@@ -50,3 +48,3 @@ const PersonSchema = require('./fixtures/person.js'); | ||
}; | ||
Person.validator = Validator; | ||
Person.validator = new ZSchema(); | ||
@@ -97,3 +95,3 @@ const person = new Person({ | ||
Person.schema = PersonSchema; | ||
Person.validator = Validator; | ||
Person.validator = new ZSchema(); | ||
const person = new Person(PersonData); | ||
@@ -114,3 +112,3 @@ | ||
Person.schema = PersonSchema; | ||
Person.validator = Validator; | ||
Person.validator = new ZSchema(); | ||
const person = new Person(PersonData); | ||
@@ -117,0 +115,0 @@ |
Sorry, the diff of this file is not supported yet
20771
0
59
5
458
- Removedz-schema@^3.16.1
- Removedcommander@2.20.3(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedlodash.get@4.4.2(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedvalidator@10.11.0(transitive)
- Removedz-schema@3.25.1(transitive)