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

ajv-merge-patch

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-merge-patch - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

spec/async.spec.js

5

keywords/add_keyword.js

@@ -23,3 +23,6 @@ 'use strict';

if (validate) return validate.schema;
throw new Error('can\'t resolve reference ' + $ref + ' from id ' + it.baseId);
var err = new Error('can\'t resolve reference ' + $ref + ' from id ' + it.baseId);
err.missingRef = it.resolve.url(it.baseId, $ref);
err.missingSchema = it.resolve.normalizeId(it.resolve.fullPath(err.missingRef));
throw err;
}

@@ -26,0 +29,0 @@ },

2

package.json
{
"name": "ajv-merge-patch",
"version": "2.0.2",
"version": "2.1.0",
"description": "$merge and $patch keywords for Ajv JSON-Schema validator to extend schemas",

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

@@ -40,5 +40,5 @@ 'use strict';

it('should extend schema defined in $ref', function() {
ajvInstances.forEach(testMerge);
ajvInstances.forEach(testPatch);
function testMerge(ajv) {
function testPatch(ajv) {
var sourceSchema = {

@@ -68,5 +68,5 @@ "id": "obj.json#",

it('should extend schema defined with relative $ref', function() {
ajvInstances.forEach(testMerge);
ajvInstances.forEach(testPatch);
function testMerge(ajv) {
function testPatch(ajv) {
var schema = {

@@ -73,0 +73,0 @@ "id": "obj.json#",

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