@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
16 lines (15 loc) • 307 B
JavaScript
import { JsonEntityFn } from "./jsonEntityFn.js";
/**
* Allow to forward group on specific property.
*
* @decorator
* @validation
* @swagger
* @schema
* @input
*/
export function ForwardGroups(bool = true) {
return JsonEntityFn((entity) => {
entity.schema.forwardGroups(bool);
});
}