.data doesn't unpack YAML objects when using CommaSeparated of Enum
After running:
import strictyaml
schema = strictyaml.Map(
{
"key": strictyaml.CommaSeparated(strictyaml.Enum(["A","B","C"]))
}
)
loaded = strictyaml.load("key: A, B", schema)
I would expect loaded.data to contain {'key': ['A', 'B']} it instead contains {'key': [YAML(A), YAML(B)]}.
Is this a bug or am I doing something wrong?
Python version: 3.9.2 strictyaml version: 1.3.2 ruamel.yaml version: 0.16.12
Sorry for the first nonsensical version @crdoconnor, I pressed Ctrl+Enter instead of Enter by mistake when writing the Issue and it submitted.
As I saw you replying to issues via e-mail, you probably got the incomplete version sent to you. It's properly edited to make sense now. :)
6de997d seems to have fixed this, but I haven't been able to set up and run the regression tests (on my Arch machine nor in the Github Actions), so I hesitate to open a pull request.