jsonschema
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -24,3 +24,3 @@ 'use strict'; | ||
// Ignored attributes, mostly due to that they are handled differently. | ||
if (this.name === "exclusiveMinimum" || this.name === "exclusiveMaximum" || this.name === "default") { | ||
if (this.name === "exclusiveMinimum" || this.name === "exclusiveMaximum" || this.name === "default" || this.name === "description" || this.name === "title") { | ||
return null; | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"author": "Tom de Grunt <tom@degrunt.nl>", | ||
"name": "jsonschema", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "mocha": "~1.3.0", |
@@ -229,2 +229,13 @@ 'use strict'; | ||
}); | ||
describe('description', function () { | ||
beforeEach(function () { | ||
this.validator = new Validator(); | ||
}); | ||
it('should be ignored', function () { | ||
this.validator.validate(1, {'description': 'some text'}).should.be.empty; | ||
}); | ||
}); | ||
}); |
48431
1129