Coding task · NestJS course · Module 10: Data Validation

Creating a Custom Validation Decorator

Create an @IsRomanNumeral decorator that checks whether a string is a valid Roman numeral.

Task

Implement the @IsRomanNumeral decorator using registerDecorator