Added validation for AttributeDefinitionResource.