Skip to content

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
Discussion options

You must be logged in to vote

"null" is the string null.

You want "enum": ["abc", "xyz",None].

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ecarey-paa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1036 on January 03, 2023 20:14.