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.
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 benil
, then therequired
directive should be used.