is-my-json-valid
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -33,3 +33,5 @@ var genobj = require('generate-object-property') | ||
var formatName = function(field) { | ||
return field.replace(/\[[^\]]+\]/g, '.*') | ||
var pattern = /\[[^\[\]"]+\]/ | ||
while (pattern.test(field)) field = field.replace(pattern, '.*') | ||
return field | ||
} | ||
@@ -36,0 +38,0 @@ |
{ | ||
"name": "is-my-json-valid", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "A JSONSchema validator that uses code generation to be extremely fast", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -109,3 +109,3 @@ # is-my-json-valid | ||
var doc = {hello: 'world', notInSchema: true} | ||
console.log(doc) // {hello: 'world'} | ||
console.log(filter(doc)) // {hello: 'world'} | ||
``` | ||
@@ -112,0 +112,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94897
3054