Question: how to specify a property that is an enum but could also be null #1037
Answered by Julian
ecarey-paa asked this question in Q&A
-
how does one specify an enum prop that could also be null? the following does not work:
interestingly the following does?
|
Beta Was this translation helpful? Give feedback.
Answered by Julian Jan 3, 2023
Replies: 2 comments
-
You want |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by ecarey-paa
-
@Julian thanks so much! that clears up a lot 🤦 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on . Already have an account? Sign in to comment
"null"
is the string null.You want
"enum": ["abc", "xyz",None]
.