Skip to content

Commit

Permalink
fix: add | null to OneOfError param property
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Dec 22, 2020
1 parent d153e81 commit 9121a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vocabularies/applicator/oneOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9121a87

Please sign in to comment.