I have a project that uses a local dependency via npm link. Everything works fine except when I move the dto files to the local dependency in another project. The JoiSchemaOptions and JoiSchema decorators don't seem to have any effect when I import from the local dependency
// local dependency
@JoiSchemaOptions({
allowUnknown: false,
})
export class ExampleDto {
@JoiSchema([CREATE], Joi.email().required())
email!: string;
}
// main proyect
import { ExampleDto } from '@example/example-common/dto/example.dto';
/*... */
@Post()
async signUp(@Body() exampleDto : ExampleDto) {
// validation doesn't work
}
Hello,
I have a project that uses a local dependency via npm link. Everything works fine except when I move the dto files to the local dependency in another project. The JoiSchemaOptions and JoiSchema decorators don't seem to have any effect when I import from the local dependency
Thanks