pip-services3-commons-node
Version:
Portable abstractions and patterns for Pip.Services in Node.js
23 lines (19 loc) • 552 B
text/typescript
/** @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);
}
}