Right now we validate in code, but now that we have a JSON schema (#149) we should use that to validate the action definition.