source: trip-planner-front/node_modules/ajv/lib/vocabularies/validation/dependentRequired.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: 510 bytes
Line 
1import type {CodeKeywordDefinition, ErrorObject} from "../../types"
2import {
3 validatePropertyDeps,
4 error,
5 DependenciesErrorParams,
6 PropertyDependencies,
7} from "../applicator/dependencies"
8
9export type DependentRequiredError = ErrorObject<
10 "dependentRequired",
11 DependenciesErrorParams,
12 PropertyDependencies
13>
14
15const def: CodeKeywordDefinition = {
16 keyword: "dependentRequired",
17 type: "object",
18 schemaType: "object",
19 error,
20 code: (cxt) => validatePropertyDeps(cxt),
21}
22
23export default def
Note: See TracBrowser for help on using the repository browser.