You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
510 B
24 lines
510 B
3 years ago
|
import type {CodeKeywordDefinition, ErrorObject} from "../../types"
|
||
|
import {
|
||
|
validatePropertyDeps,
|
||
|
error,
|
||
|
DependenciesErrorParams,
|
||
|
PropertyDependencies,
|
||
|
} from "../applicator/dependencies"
|
||
|
|
||
|
export type DependentRequiredError = ErrorObject<
|
||
|
"dependentRequired",
|
||
|
DependenciesErrorParams,
|
||
|
PropertyDependencies
|
||
|
>
|
||
|
|
||
|
const def: CodeKeywordDefinition = {
|
||
|
keyword: "dependentRequired",
|
||
|
type: "object",
|
||
|
schemaType: "object",
|
||
|
error,
|
||
|
code: (cxt) => validatePropertyDeps(cxt),
|
||
|
}
|
||
|
|
||
|
export default def
|