From 9121a870ebfa3bb6b1d072cc91b4cd2c22b817ef Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 23 Dec 2020 12:53:44 +1300 Subject: [PATCH] fix: add `| null` to `OneOfError` param property --- lib/vocabularies/applicator/oneOf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vocabularies/applicator/oneOf.ts b/lib/vocabularies/applicator/oneOf.ts index 16eab8ba4..f34c2dc97 100644 --- a/lib/vocabularies/applicator/oneOf.ts +++ b/lib/vocabularies/applicator/oneOf.ts @@ -9,7 +9,7 @@ import {_, Name} from "../../compile/codegen" import {alwaysValidSchema} from "../../compile/util" import {SchemaCxt} from "../../compile" -export type OneOfError = ErrorObject<"oneOf", {passingSchemas: [number, number]}, AnySchema[]> +export type OneOfError = ErrorObject<"oneOf", {passingSchemas: [number, number] | null}, AnySchema[]> const error: KeywordErrorDefinition = { message: "should match exactly one schema in oneOf",