Constraint validation API

Using the native validation API, we can: