class-validator-jsonschema
class-validator-jsonschema copied to clipboard
Support for @Matches / "pattern"?
I recently added a @Matches decorator to a DTO class and was surprised to find that the resulting JSON schema did not change. I think that this decorator should map neatly to the "pattern" schema keyword. I can add a pattern key to the class property's @JSONSchema decorator options for now, but in the future, would it make sense to add schema generation support for this decorator?