import 'reflect-metadata' ; import { MetadataKeys } from './MetadataKeys' ; export function bodyValidator ( ... keys ) { return function ( target , key , desc ) { Reflect . defineMetadata ( MetadataKeys . validator , keys , target , key ) ; } ; }