Parse list of object from external yaml file
I have an external YAML file that contains only a list of objects. I need to read this file every time the loadVerificatedEmailsConfiguration method is called. I’m trying to solve this problem using the Apache Commons Configuration2 library. Unfortunately, I’m only able to load individual attributes from the file, such as verificated-emails.email, but not individual objects as a whole. I need this because some attributes are optional.