UNPKG

wa-chat-server

Version:

Watson Assistant powered chat server

22 lines (21 loc) 691 B
import { IConversationServices } from '../interface/IConversationServices'; export declare class SchemaValidator { private services; private errors; private obligatorySchemas; private optionalSchemas; private schemasOnFS; constructor(services: IConversationServices); private loadSchemas; private checkForMissingSchemas; private checkForExtraSchemas; private validateSchemas; /** * @pre: this.services is populated (done in constructor) * @post: * 1) All required JSON schemas are found * 2) There are no unused JSON schemas on the filesystem * 3) All JSON schemas are valid */ validate(): Promise<void>; }