Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
properties: {
// To complete
},
required: [ /* To complete */ ],
type: 'object',
};
export class TestFooBarCollection extends EntityResourceCollection {
// tslint:disable-next-line:whitespace
entityClass = TestFooBar;
allowedOperations: EntityResourceCollection['allowedOperations'] = [
'create', 'findById', 'find', 'modifyById', 'updateById', 'deleteById'
];
middlewares = [
middleware('create|modifyById|updateById', ({ data }) => validate(schema, data))
];
}