source: imaps-frontend/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • 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.