BS-10958, refactor contractConstraintValidator
BS-10958, fix mandatory contraints check with multiple inputs