Saving and reading enchantements of item stacks to and from YAML configuration files does not work.
If MENDING is saved in an item stack in the configuration file, the read item stack will have a PIRCING enchantment instead of the MENDING enchantment. If an item stack has a PIRCING enchantment it will be saved as a MENDING enchantment in the YAML configuration.
This also works with MENDING [Item] <-> VANISHING_CURSE [YAML] (Shown in test plugin)
It seems as if the conversion between the enchantment enum value string to the coresponding enum value objects is not working correctly.
The config file contains the result after the plugin was loaded on my 1.19 spigot test server.