Socket
Socket
Sign inDemoInstall

ajv-keywords

Package Overview
Dependencies
6
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.4.1

10

keywords/deepProperties.js

@@ -11,2 +11,12 @@ 'use strict';

return { 'allOf': schemas };
},
metaSchema: {
patternProperties: {
'^(\\/([^~\\/]|~0|~1)*)*(\\/)?$': {
$ref: ajv._opts.v5
? 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#'
: 'http://json-schema.org/draft-04/schema#'
}
},
additionalProperties: false
}

@@ -13,0 +23,0 @@ };

@@ -13,2 +13,8 @@ 'use strict';

return expr;
},
metaSchema: {
items: {
type: 'string',
format: 'json-pointer'
}
}

@@ -15,0 +21,0 @@ };

2

package.json
{
"name": "ajv-keywords",
"version": "1.4.0",
"version": "1.4.1",
"description": "Custom JSON-Schema keywords for ajv validator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -86,3 +86,3 @@ # ajv-keywords

Based on JavaScript `typeof` operation.
Based on JavaScript `instanceof` operation.

@@ -117,3 +117,3 @@ The value of the keyword should be a string (`"Object"`, `"Array"`, `"Function"`, `"Number"`, `"String"`, `"Date"`, `"RegExp"` or `"Buffer"`) or array of strings.

If the validated value is not a number the validation passes, otherwise to pas validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. If `exclusiveRange` keyword is present in the same schema and its value is true, the validated value must not be equal to the range boundaries.
If the validated value is not a number the validation passes, otherwise to pass validation the value should be greater (or equal) than the first number and smaller (or equal) than the second number in the array. If `exclusiveRange` keyword is present in the same schema and its value is true, the validated value must not be equal to the range boundaries.

@@ -206,3 +206,3 @@ ```javascript

type: 'object',
deepRequired: ["users/1/role"]
deepRequired: ["/users/1/role"]
};

@@ -241,3 +241,3 @@

deepProperties: {
"users/1/role": { "enum": ["admin"] }
"/users/1/role": { "enum": ["admin"] }
}

@@ -244,0 +244,0 @@ };

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc