@@ -402,9 +402,9 @@ addKeyword({
402402 // );
403403 },
404404
405- interpret : (implies , instance , ast , dynamicAnchors , quiet ) => {
405+ interpret : (implies , instance , context ) => {
406406 return implies .reduce ((valid , schema ) => {
407- return ! valid || Validation .interpret (schema, instance, ast, dynamicAnchors, quiet );
407+ return ! valid || Validation .interpret (schema, instance, context );
408408 }, true );
409409 }
410410});
@@ -524,23 +524,30 @@ These are available from the `@hyperjump/json-schema/experimental` export.
524524 is needed for compiling sub-schemas. The ` parentSchema` parameter is
525525 primarily useful for looking up the value of an adjacent keyword that
526526 might effect this one.
527- * interpret: (compiledKeywordValue: any, instance: JsonNode, ast: AST, dynamicAnchors: object, quiet: boolean, schemaLocation: string ) => boolean
527+ * interpret: (compiledKeywordValue: any, instance: JsonNode, context: ValidationContext ) => boolean
528528
529529 This function takes the value returned by the ` compile` function and
530530 the instance value that is being validated and returns whether the
531531 value is valid or not. The other parameters are only needed for
532532 validating sub-schemas.
533- * collectEvaluatedProperties?: (compiledKeywordValue: any, instance: JsonNode, ast: AST, dynamicAnchors: object ) => Set\< string> | false
533+ * collectEvaluatedProperties?: (compiledKeywordValue: any, instance: JsonNode, context: ValidationContext, isTop?: boolean ) => Set\< string> | false
534534
535535 If the keyword is an applicator, it will need to implement this
536536 function for ` unevaluatedProperties` to work as expected.
537- * collectEvaluatedItems?: (compiledKeywordValue: A, instance: JsonNode, ast: AST, dynamicAnchors: object ) => Set\< number> | false
537+ * collectEvaluatedItems?: (compiledKeywordValue: A, instance: JsonNode, context: ValidationContext, isTop?: boolean ) => Set\< number> | false
538538
539539 If the keyword is an applicator, it will need to implement this
540540 function for ` unevaluatedItems` to work as expected.
541541 * collectExternalIds?: (visited: Set\< string>, parentSchema: Browser, schema: Browser) => Set\< string>
542542 If the keyword is an applicator, it will need to implement this
543- function to work properly with the [bundle](#bundling) feature.
543+ function to work properly with the [bundle](#bundling) feature.
544+
545+ * **ValidationContext**: object
546+ * ast: AST
547+ * dynamicAnchors: object
548+ * schemaUrl: string
549+ * errors: OutputUnit[]
550+ * annotations: OutputUnit[]
544551* **defineVocabulary**: (id: string, keywords: { [keyword: string]: string }) => void
545552
546553 Define a vocabulary that maps keyword name to keyword URIs defined using
0 commit comments