UNPKG

577 BTypeScriptView Raw
1import convict from 'convict';
2import { Context, JobConfig, ValidatedJobConfig } from './interfaces';
3export declare class JobValidator {
4 schema: convict.Schema<any>;
5 private readonly context;
6 private readonly opLoader;
7 constructor(context: Context, options?: {
8 terasliceOpPath?: string;
9 });
10 /** Validate the job configuration, including the Operations and APIs configuration */
11 validateConfig(jobSpec: JobConfig): ValidatedJobConfig;
12 hasSchema(obj: Record<string, any>, name: string): void;
13}
14//# sourceMappingURL=job-validator.d.ts.map
\No newline at end of file