Hi there,
we are using novu with a nestjs service, and have multiple classes already defined with class-validator for validation and dont use zod right now. Would it be possible to add support for class-validator for schema definition instead of zod?
š¤ Why is this feature needed ?
NestJs and multiple other services are using this lib already for validation and it would help quite alot to just reuse existing classes within the workflow definitions.
āļø How do you aim to achieve this?
We dont know for certain if there are any technical limitations, but if not it would be great if both libraries could be used as input.
š Feature description
Hi there, we are using novu with a nestjs service, and have multiple classes already defined with class-validator for validation and dont use zod right now. Would it be possible to add support for class-validator for schema definition instead of zod?
š¤ Why is this feature needed ?
NestJs and multiple other services are using this lib already for validation and it would help quite alot to just reuse existing classes within the workflow definitions.
āļø How do you aim to achieve this?
We dont know for certain if there are any technical limitations, but if not it would be great if both libraries could be used as input.
šļø Additional Information
class-validator to json schema: https://www.npmjs.com/package/class-validator-jsonschema
š Have you spent some time to check if this feature request has been raised before?
š¢ Have you read the Code of Conduct?
Are you willing to submit PR?
None