UNPKG

292 BPlain TextView Raw
1import type {CodeKeywordDefinition} from "../../types"
2import {validateUnion} from "../code"
3
4const def: CodeKeywordDefinition = {
5 keyword: "union",
6 schemaType: "array",
7 trackErrors: true,
8 code: validateUnion,
9 error: {message: "must match a schema in union"},
10}
11
12export default def