You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the incorrect value type for a field in a dataclass instance and then using that to construct a config object the error message is quite unclear.
omegaconf.errors.ValidationError: Value 'test' could not be converted to Integer
full_key: some_field
reference_type=Optional[Config]
object_type=Config
Additional context
OmegaConf version: 2.0.2
Python version: 3.8.3
Operating system : Ubuntu 18.04
This issue is not important, it was just something I discovered while testing out error messages for a framework.
The text was updated successfully, but these errors were encountered:
Ah, too bad. But no worries, I have made a somewhat hacky solution in the meanwhile. Don't bother if it is too much work. If I had more time I would take a look myself and see if I could contribute somehow.
Jasha10
added a commit
to Jasha10/omegaconf
that referenced
this issue
Feb 22, 2021
Describe the bug
When using the incorrect value type for a field in a dataclass instance and then using that to construct a config object the error message is quite unclear.
To Reproduce
gives the error
Expected behavior
I would love to have the same behavior as when running
which gives
Additional context
This issue is not important, it was just something I discovered while testing out error messages for a framework.
The text was updated successfully, but these errors were encountered: