class-validator-jsonschema icon indicating copy to clipboard operation
class-validator-jsonschema copied to clipboard

Support for @Matches / "pattern"?

Open thw0rted opened this issue 11 months ago • 0 comments

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?

thw0rted avatar Nov 08 '24 14:11 thw0rted