-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add validation type to NimbleOptions.ValidationError
#134
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build d7df5c28720d1edd68b0d059fcf4569b14733347-PR-134Details
💛 - Coveralls |
:integer
NimbleOptions.ValidationError
Yeah I think this is the right path but if we pass |
This is a good idea. I'll do this. Thanks! I'll continue going down this route. Thank you! |
Sorry for not getting back to this sooner! @whatyouhide a couple things.
|
Instead of building the error message where you validate the type, you can build it (by pattern matching) in |
Thanks for the clarification! That's what I assumed you were referring to. Here is what I wrote in my original question.
Would you agree with that? |
Yeah this is why I wanted a structured error reason that we could turn into a message later on. Ok, for now let's keep this version passing strings around and I'll see if I can refactor that at some point! |
How should we handle types like |
Mh I can't recall if |
@whatyouhide initial attempt at adding failed validation to
NimbleOptions.ValidationError
. Only implemented support for{:type, :integer}
so I can get a sanity check on whether you think I'm on the right path.