Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ajv-keywords

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-keywords - npm Package Compare versions

Comparing version 2.0.0-beta.0 to 2.0.0-beta.1

keywords/_util.js

6

keywords/deepProperties.js
'use strict';
var util = require('./_util');
module.exports = function defFunc(ajv) {

@@ -15,5 +17,3 @@ defFunc.definition = {

patternProperties: {
'^(\\/([^~\\/]|~0|~1)*)*(\\/)?$': {
$ref: 'http://json-schema.org/draft-06/schema#'
}
'^(\\/([^~\\/]|~0|~1)*)*(\\/)?$': util.metaSchemaRef(ajv)
},

@@ -20,0 +20,0 @@ additionalProperties: false

@@ -7,3 +7,3 @@ 'use strict';

var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + '.' + $keyword;
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;

@@ -10,0 +10,0 @@ var $breakOnError = !it.opts.allErrors;

@@ -7,3 +7,3 @@ 'use strict';

var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + '.' + $keyword;
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;

@@ -10,0 +10,0 @@ var $breakOnError = !it.opts.allErrors;

@@ -7,3 +7,3 @@ 'use strict';

var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + '.' + $keyword;
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;

@@ -10,0 +10,0 @@ var $breakOnError = !it.opts.allErrors;

'use strict';
var util = require('./_util');
module.exports = function defFunc(ajv) {
if (ajv.RULES.keywords.switch && ajv.RULES.keywords.if) return;
var metaSchemaUri = 'http://json-schema.org/draft-06/schema#';
var metaSchemaRef = util.metaSchemaRef(ajv);

@@ -17,7 +19,7 @@ defFunc.definition = {

properties: {
'if': { $ref: metaSchemaUri },
'if': metaSchemaRef,
'then': {
anyOf: [
{ type: 'boolean' },
{ $ref: metaSchemaUri }
metaSchemaRef
]

@@ -24,0 +26,0 @@ },

{
"name": "ajv-keywords",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"description": "Custom JSON-Schema keywords for Ajv validator",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc