Added support for api parameter validation.  Nicely working model.