How to add enums to custom types json #308
Answered
by
arjanz
Gauthamastro
asked this question in
Q&A
-
Suppose I have an enum Color with Red, Blue, and Green as values. How will I include this in custom types JSON? |
Beta Was this translation helpful? Give feedback.
Answered by
arjanz
Jan 4, 2021
Replies: 2 comments
-
That would be something like: {
"types": {
"Color": {
"type": "enum",
"value_list": [
"Red",
"Blue",
"Green"
]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arjanz
-
Ohh Thanks @arjanz |
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
That would be something like: