Add validation type to NimbleOptions.ValidationError#134
Add validation type to NimbleOptions.ValidationError#134anthonator wants to merge 2 commits intodashbitco:mainfrom
NimbleOptions.ValidationError#134Conversation
Pull Request Test Coverage Report for Build d7df5c28720d1edd68b0d059fcf4569b14733347-PR-134Details
💛 - Coveralls |
:integerNimbleOptions.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.