source: trip-planner-front/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 380 bytes
Line 
1import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types"
2import {validateUnion} from "../code"
3
4export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>
5
6const def: CodeKeywordDefinition = {
7 keyword: "anyOf",
8 schemaType: "array",
9 trackErrors: true,
10 code: validateUnion,
11 error: {message: "must match a schema in anyOf"},
12}
13
14export default def
Note: See TracBrowser for help on using the repository browser.