SAP-BTP-Spielwiese/app1/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

14 lines
380 B
TypeScript

import type {CodeKeywordDefinition, ErrorNoParams, AnySchema} from "../../types"
import {validateUnion} from "../code"
export type AnyOfError = ErrorNoParams<"anyOf", AnySchema[]>
const def: CodeKeywordDefinition = {
keyword: "anyOf",
schemaType: "array",
trackErrors: true,
code: validateUnion,
error: {message: "must match a schema in anyOf"},
}
export default def