payout / rester

An exceedingly quick way of creating restful interfaces between Ruby services.
https://www.payout.com
MIT License
2 stars 0 forks source link

Should not run match validations if string is "null" #70

Closed roberthoner closed 8 years ago

roberthoner commented 9 years ago

Currently, we always run the match validation (i.e., regex validation before the incoming string is parsed). Since "null" has special handling (i.e., it is parsed as nil), we should not apply the match validation in that case. If the param can't be nil, then the required directive should be used.

roberthoner commented 8 years ago

I don't believe this is an issue anymore after #11, where nils are handled better.

roberthoner commented 8 years ago

Closing this (see above comment).