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

@hyperjump/json-schema-core

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperjump/json-schema-core - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "@hyperjump/json-schema-core",
"version": "0.3.0",
"version": "0.3.1",
"description": "A framework for building JSON Schema tools",

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

@@ -474,3 +474,3 @@ # JSON Schema Core

const validate = require("jschema/lib/keywords/validate");
JsonSchema.addkeyword(`${schemaVersion}#validate`, validate);
JsonSchema.addKeyword(`${schemaVersion}#validate`, validate);

@@ -518,3 +518,3 @@ // Configure references

// Add `cond` keyword
JsonSchema.addkeyword("http://example.com/draft/custom/schema#cond", {
JsonSchema.addKeyword("http://example.com/draft/custom/schema#cond", {
compile: async (schema, ast) => {

@@ -559,6 +559,9 @@ const subSchemas = Schema.map((subSchema) => JsonSchema.compileSchema(subSchema, ast), schema);

// Choose a URI for your vocabulary and add keywords
JsonSchema.addVocabulary("https://example.com/draft/custom/vocab/conditionals", {
JsonSchema.defineVocabulary("https://example.com/draft/custom/vocab/conditionals", {
cond: cond
});
// Add your vocabulary
JsonSchema.addVocabulary("http://example.com/draft/custom/schema", "http://example.com/draft/custom/vocab/conditionals");
// Try it out

@@ -565,0 +568,0 @@ Schema.add({

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