@hyperjump/json-schema
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -5,3 +5,2 @@ import { append as pointerAppend, get as pointerGet } from "@hyperjump/json-pointer"; | ||
import { jsonTypeOf } from "./common.js"; | ||
import * as Reference from "./reference.js"; | ||
@@ -31,3 +30,3 @@ | ||
export const uri = (doc) => `${doc.id || ""}#${encodeURI(doc.pointer)}`; | ||
export const value = (doc) => Reference.isReference(doc.value) ? Reference.value(doc.value) : doc.value; | ||
export const value = (doc) => doc.value; | ||
export const has = (key, doc) => key in value(doc); | ||
@@ -34,0 +33,0 @@ export const typeOf = curry((doc, type) => jsonTypeOf(value(doc), type)); |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects", | ||
@@ -5,0 +5,0 @@ "type": "module", |
356221
10406