-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[REQ][rust-server] Regex pattern validation for strings #10546
Comments
Hm, I tried replicating this issue, and it will indeed accept something like "12345678-1234-1234-1234-123456789012111". However, I think this is actually an issue with your regex rather than the generator not correctly evaluating the regex. In the previous example, "12345678-1234-1234-1234-123456789012" is a valid substring and therefore, is accepted. Try adding ^$ tags to the beginning and end so that the entire string has to be that valid substring |
What do you mean? Currently in Rust there is not regex checking at all. Your testing is specific to This feature request is to track this missing feature in Rust. I am planning to implement it in a future PR, just wanted to open a tracking Issue ticket first. |
I can confirm that this doesn't seem to be implemented as of v5.3.1. Would love to see this implemented though. |
Is your feature request related to a problem? Please describe.
Taking the following object as example:
The server then allows invalid user ID's which are not compliant with the defined pattern.
The text was updated successfully, but these errors were encountered: