service-activities-node
Version:
Party activities tracking microservice in Node.js / ES2017
12 lines (10 loc) • 412 B
text/typescript
import { ObjectSchema } from 'pip-services3-commons-nodex';
import { TypeCode } from 'pip-services3-commons-nodex';
export class ReferenceV1Schema extends ObjectSchema {
public constructor() {
super();
this.withRequiredProperty('id', TypeCode.String);
this.withRequiredProperty('type', TypeCode.String);
this.withOptionalProperty('name', TypeCode.String);
}
}