Skip to content

Commit

Permalink
Merge pull request #1368 from G-Rath/patch-2
Browse files Browse the repository at this point in the history
fix: add `| null` to `OneOfError` param property
  • Loading branch information
epoberezkin authored Dec 23, 2020
2 parents d153e81 + 9121a87 commit 342b84d
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 342b84d

Please sign in to comment.