Added an attribute constraint map to validate attributes by type.