Replace the hard-coded list in the error message with a run-time expansion of the allowed values array. This will facilitate maintenance by ensuring the content is always in sync and doesn't need to be changed in more than 1 place.
Please change the linked code and then search for any other similar instances that need to be updated.
https://github.com/InformaticsGenomicMedicine/DraftCoreDataModel/blob/79450932a44ee677816f9c02e6f5660ea03e5ec1/src/core_variant.py#L95C83-L95C83
Replace the hard-coded list in the error message with a run-time expansion of the allowed values array. This will facilitate maintenance by ensuring the content is always in sync and doesn't need to be changed in more than 1 place.
Please change the linked code and then search for any other similar instances that need to be updated.