UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

27 lines (26 loc) 587 B
/** * Model to store error while validation of param, query string and request body * in meta data of controller object */ export interface ModelError { /** * Name of property */ propertyName: string; /** * error message to be return when validation fails. */ errorMessage: string; /** * True when validation fails on type error */ isTypeError: boolean; /** * Type of propery */ typeOfProperty: Function | undefined; /** * Type of error */ errorType: "Param" | "QueryString" | "RequestBody"; }