-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Validation messages #13208
Comments
Agreed. PRs are welcome. This should be a pretty straightforward refactor. |
I would if I knew how to work with zephir :P |
Just clone repo, install zephir extension into phpstorm and code it and do pr. Nothing fancy really. |
I feel this issue should stay open. @sergeyklay |
Closing in favor of #13855. Will revisit if the community votes for it, or in later versions. |
@niden can you assign me this? |
@emiliodeg all yours |
I've been working on this and I want to share with you my design to receive opinions before doing all the work I use an Some validators like The main idea is to have a transparent transition. All current definitions will continue to work as they do now |
This reverts commit 50792a2.
This reverts commit 57bea9d.
…odeg/cphalcon into emiliodeg-T13208-validation-messages * 'T13208-validation-messages' of https://github.com/emiliodeg/cphalcon: (27 commits) [#13208] - Corrected more tests [#13208] - More test corrections [#13208] - Corrected test [#13208] - Corrected references [#13208] - Trying to fix the observed var [#13208] - Trying different scope [#13208] - Trying interface corrections Revert "[#13208] - Interface corrections" [#13208] - Interface corrections Revert "[#13208] - Interface corrections/docblocks" [#13208] - Interface corrections/docblocks Updated docblock Updated validators Fixed array fields Fixed some tests Changed advice to template Changed advice for template More string length tests String length tests Added a message factory ...
* emiliodeg-T13208-validation-messages: (27 commits) [#13208] - Corrected more tests [#13208] - More test corrections [#13208] - Corrected test [#13208] - Corrected references [#13208] - Trying to fix the observed var [#13208] - Trying different scope [#13208] - Trying interface corrections Revert "[#13208] - Interface corrections" [#13208] - Interface corrections Revert "[#13208] - Interface corrections/docblocks" [#13208] - Interface corrections/docblocks Updated docblock Updated validators Fixed array fields Fixed some tests Changed advice to template Changed advice for template More string length tests String length tests Added a message factory ...
Resolved in #14193 |
Thank you guys :) |
Im not sure as to the reason behind this decision, but I feel that the validation messages for the included validators should be within the validators them selfs not the base class.
https://github.com/phalcon/cphalcon/blob/master/phalcon/validation.zep#L334-L360
This is a very minor issue and more of my ODD kicking in, just feel its better design to have each validator define its default message to allow for easier extension and reliable removal of validators.
The text was updated successfully, but these errors were encountered: