UNPKG

pip-services3-commons-node

Version:
23 lines (19 loc) 552 B
/** @module validate */ import { TypeCode } from '../convert/TypeCode'; import { ObjectSchema } from './ObjectSchema'; /** * Schema to validate [[PagingParams]]. * * @see [[PagingParams]] */ export class PagingParamsSchema extends ObjectSchema { /** * Creates a new instance of validation schema. */ public constructor() { super(); this.withOptionalProperty("skip", TypeCode.Long); this.withOptionalProperty("take", TypeCode.Long); this.withOptionalProperty("total", TypeCode.Boolean); } }