ADD attribute type validations in all API resources

new lines and minor fixes