We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03bb4aa commit 76a171dCopy full SHA for 76a171d
schema/validator.js
@@ -2,7 +2,9 @@ var Ajv = require('ajv');
2
var ajv = new Ajv({allErrors: true});
3
4
module.exports = function validate(schema, data) {
5
- var ajv = new Ajv();
+ var ajv = new Ajv({
6
+ errorDataPath: 'property'
7
+ });
8
var isValid = ajv.validate(schema, data);
9
10
if(!isValid) {
test/extract.test.js
@@ -29,7 +29,7 @@ describe("ExtractTextPlugin.extract()", function() {
29
ExtractTextPlugin.extract({style: 'file.css'});
30
},
31
function(err) {
32
- return err.message === 'data should NOT have additional properties';
+ return err.message === 'data[\'style\'] should NOT have additional properties';
33
}
34
);
35
});
0 commit comments