adds ability to declaratively fail on null field

@bryanduxbury