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
allowBlank not documented in possible annotation parameter for QueryParam / RequesParam #992
Comments
and actually it does not work as i would have naively expected |
it was added here https://github.com/FriendsOfSymfony/FOSRestBundle/pull/886/files |
@allan-simon sadly the regex validator does not work as expected. The RegexValidator ignores everything that is null or an empty string. What documentation can i add to complete this? |
@mosch , indeed I've seen this ticket on symfony symfony/symfony#10221 I haven't read the full thread but it seems the behaviour is "on purpose and symfony people are well aware of it" and dont plan to fix it , and seems some stuff will change in a far future with symfony/symfony#12312 I guess you can in documentation that allowBlank is the way to go as requirements has this edge base (i'm not a very fluent english speaker, so I can't help on how to phrase it nicely :/ ) |
ping @webmozart |
it seems to be something that has been added recently
I'm currently finishing an other PR , so if someone feel like adding it in the doc
The text was updated successfully, but these errors were encountered: