Minecraft wiki entry for Curing_a_zombie_villager, associated text: A zombie farmer getting cured and losing their profession.
A non-professional zombie villager getting cured.
A zombie librarian getting cured and kept their profession after being cured because they traded before they were zombified.