New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-schema-library

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-library - npm Package Compare versions

Comparing version 10.0.0-rc4 to 10.0.0-rc5

4

dist/module/lib/getChildSchemaSelection.js

@@ -27,3 +27,5 @@ import { isJsonError } from "./types";

if (schema.additionalItems && !isObject(schema.items)) {
return [draft.createNode(schema.additionalItems).resolveRef().schema];
// we fallback to a string if no schema is defined - might be subject for configuration
const additionalSchema = schema.additionalItems === true ? { type: "string" } : schema.additionalItems;
return [draft.createNode(additionalSchema).resolveRef().schema];
}

@@ -30,0 +32,0 @@ // array.items[] exceeded

@@ -34,3 +34,6 @@ import { Draft } from "./draft";

if (schema.additionalItems && !isObject(schema.items)) {
return [draft.createNode(schema.additionalItems).resolveRef().schema];
// we fallback to a string if no schema is defined - might be subject for configuration
const additionalSchema: JsonSchema =
schema.additionalItems === true ? { type: "string" } : schema.additionalItems;
return [draft.createNode(additionalSchema).resolveRef().schema];
}

@@ -37,0 +40,0 @@

{
"name": "json-schema-library",
"version": "10.0.0-rc4",
"version": "10.0.0-rc5",
"description": "Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation",

@@ -5,0 +5,0 @@ "module": "dist/module/index.js",

Sorry, the diff of this file is too big to display

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