Replies: 1 comment
-
Ya this is something that needs improvement, here are a few issues associated which contain some workaround discussions you could reference |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below I have a self-contained example which will show the behavior I'm observing. The main thing we are concerned with is the default value of
MyConfigResource.val
. There is nothing I can put here that will result in a successful execution.Here is what I observed when putting values in:
"one"
- The job tries to run but I get a validation error:MyEnum.one
- I get a pre-execution validation error"1"
- A similar pre-execution validation errorThe behavior is also exactly the same if I use a
Field
, i.e.Interestingly, if you wrap the enum class in another type (like
list
), one of the options worksTo be clear I really only think
MyEnum.one
should be accepted at all. I'm quite annoyed that when wrapping it in alist
the one that works is"one"
-- making me use the string literal representing the enum key is quite odd.Beta Was this translation helpful? Give feedback.
All reactions