@hyperjump/json-schema
Advanced tools
Comparing version 1.9.6 to 1.9.7
@@ -36,2 +36,3 @@ import { addKeyword, defineVocabulary, loadDialect } from "../lib/keywords.js"; | ||
"enum": "https://json-schema.org/keyword/enum", | ||
"examples": "https://json-schema.org/keyword/examples", | ||
"exclusiveMaximum": "https://json-schema.org/keyword/exclusiveMaximum", | ||
@@ -38,0 +39,0 @@ "exclusiveMinimum": "https://json-schema.org/keyword/exclusiveMinimum", |
@@ -37,2 +37,3 @@ import { addKeyword, defineVocabulary, loadDialect } from "../lib/keywords.js"; | ||
"enum": "https://json-schema.org/keyword/enum", | ||
"examples": "https://json-schema.org/keyword/examples", | ||
"exclusiveMaximum": "https://json-schema.org/keyword/exclusiveMaximum", | ||
@@ -39,0 +40,0 @@ "exclusiveMinimum": "https://json-schema.org/keyword/exclusiveMinimum", |
@@ -9,3 +9,3 @@ import type { Json } from "@hyperjump/json-pointer"; | ||
pointer: string, | ||
value: Json, | ||
value: Json | undefined, | ||
type: JsonNodeType, | ||
@@ -15,15 +15,15 @@ children: JsonNode[], | ||
) => JsonNode; | ||
export const get: (url: string, context: JsonNode) => JsonNode | undefined; | ||
export const get: <T extends JsonNode>(url: string, context: T) => T | undefined; | ||
export const uri: (node: JsonNode) => string; | ||
export const value: <A>(node: JsonNode) => A; | ||
export const has: (key: string, node: JsonNode) => boolean; | ||
export const typeOf: (node: JsonNode) => JsonType; | ||
export const step: (key: string, node: JsonNode) => JsonNode; | ||
export const iter: (node: JsonNode) => Generator<JsonNode>; | ||
export const keys: (node: JsonNode) => Generator<JsonNode>; | ||
export const values: (node: JsonNode) => Generator<JsonNode>; | ||
export const entries: (node: JsonNode) => Generator<[JsonNode, JsonNode]>; | ||
export const length: (node: JsonNode) => number; | ||
export const typeOf: (node: JsonNode) => JsonNodeType; | ||
export const step: <T extends JsonNode>(key: string, node: T) => T | undefined; | ||
export const iter: <T extends JsonNode>(node: T) => Generator<T>; | ||
export const keys: <T extends JsonNode>(node: T) => Generator<T>; | ||
export const values: <T extends JsonNode>(node: T) => Generator<T>; | ||
export const entries: <T extends JsonNode>(node: T) => Generator<[T, T]>; | ||
export const length: <T extends JsonNode>(node: T) => number; | ||
export const allNodes: (node: JsonNode) => Generator<JsonNode>; | ||
export const allNodes: <T extends JsonNode>(node: T) => Generator<T>; | ||
@@ -30,0 +30,0 @@ export type JsonNode = { |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "1.9.6", | ||
"version": "1.9.7", | ||
"description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
328233
8983