Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for @Matches / "pattern"? #113

Open
thw0rted opened this issue Nov 8, 2024 · 0 comments
Open

Support for @Matches / "pattern"? #113

thw0rted opened this issue Nov 8, 2024 · 0 comments

Comments

@thw0rted
Copy link

thw0rted commented Nov 8, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant