Socket
Socket
Sign inDemoInstall

ajv

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

22

lib/compile/rules/$ref.dot.js

@@ -5,11 +5,17 @@ {{# def.definitions }}

{{? $schema == '#' || $schema == '#/' }}
var errors{{=$lvl}} = validate.errors;
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }})) {
if (errors{{=$lvl}} !== null) {
validate.errors = errors{{=$lvl}}.concat(validate.errors);
}
errors = validate.errors.length;
} {{? $breakOnError }} else { {{?}}
{{? $breakOnError && it.wasRoot }}
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }}))
return false;
else {
{{??}}
var errors{{=$lvl}} = validate.errors;
if (!validate({{=$data}}, (dataPath || '') + {{= it.errorPath }})) {
if (errors{{=$lvl}} !== null) {
validate.errors = errors{{=$lvl}}.concat(validate.errors);
}
errors = validate.errors.length;
} {{? $breakOnError }} else { {{?}}
{{?}}
{{??}}
{{ $id = it.resolveRef(it.baseId, $schema); }}
{{ $id = it.resolveRef(it.baseId, $schema, it.rootId); }}
{{? $id === undefined }}

@@ -16,0 +22,0 @@ {{# def.error:'$ref' }}

{
"name": "ajv",
"version": "0.4.7",
"version": "0.4.8",
"description": "Another JSON schema Validator",

@@ -5,0 +5,0 @@ "main": "lib/ajv.js",

@@ -31,3 +31,3 @@ [

{
"description": "invalid",
"description": "child numbers are invalid",
"data": {

@@ -43,3 +43,3 @@ "name": "foo",

{
"description": "invalid",
"description": "child arrays are invalid",
"data": {

@@ -46,0 +46,0 @@ "name": "foo",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc