Open jeremyk opened 4 months ago
One more note - this is an issue for us as when we write out the config it will use the value ("tall" in this case) but that same config can't be read back in as it will throw the above error.
Feel free to suggest patch to fix it (with tests).
Describe the bug In the example in the docs for Enums these all work:
but for Str enums (same as docs but use StrEnum instead):
The first two examples work as with regular enums but the third:
gives:
omegaconf.errors.ValidationError: Invalid value 'tall', expected one of [SHORT, TALL]
To Reproduce See description
Expected behavior You would be able to set a StrEnum with the key or the value.
Additional context