service-facets-node
Version:
Faceted search microservice in Node.js / ES2017
12 lines (10 loc) • 399 B
text/typescript
import { ObjectSchema } from 'pip-services3-commons-nodex';
import { TypeCode } from 'pip-services3-commons-nodex';
export class FacetV1Schema extends ObjectSchema {
public constructor() {
super();
this.withRequiredProperty('group', TypeCode.String);
this.withRequiredProperty('name', TypeCode.String);
this.withOptionalProperty('count', TypeCode.Long);
}
}