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 #132
Comments
Hi @jeevatkm Thanks 😊 |
@broklyngagah Yes, I'm planning to use flexible library(need to do my homework on it). I haven't made any choices so far. Thanks for the suggesting one. I will look into it. |
@broklyngagah @eraac I have done my homework on following validation libraries. I feel like second one is more flexible/extensible, what do you think of it? I'm looking forward to your inputs. |
@broklyngagah @eraac After your inputs we can pick one library for integrating with aah framework. |
Hi @jeevatkm |
same here, i have already using go-playground/validator, it seems more simple to implement/use but maybe with less builtin validator. i18n and l10n is a real plus. For me asaskevich/govalidator is probably more complete (for custom validation), but more complex too |
@broklyngagah @eraac Thank you for your inputs. Let's keep it simple 😄 I will use https://github.com/go-playground/validator as a Validator for aah. Also I have added the spec info above. Please have a look and let me know. |
…h and version bump to v0.3
Unpublished doc: https://github.com/go-aah/docs/blob/v0.10-edge/validation.md |
My homework and discussion with aah users in the thread then finally chosen
https://github.com/go-playground/validator
as a Validator library for aah framework.Will add method details and types later on
On Validation errors, aah will call error handler in the sequence of -
v0.10
)As we know currently aah has Centralized Error Handling feature.
As part of flexible validator feature, I'm planning take
aah
capabilities to the next level via providing an optional controller levelErrorHandler
. This is gonna have small breaking change, what it means-aah.ErrorHandler
func type would be refactored toaah.ErrorHandlerFunc
aah.ErrorHandler
interface comes in.So aah framework user has an option handle errors at controller level too-
The text was updated successfully, but these errors were encountered: