Using union instead of knownvalues decorator in below case #5187
Unanswered
situ311417
asked this question in
Q&A
Replies: 1 comment
-
@timotheeguerin can you please help on this |
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
-
How to use union in place of knownvalues decorator
1st case
Model debit{
@knownvalues(cardstatus)
OrderType: string;
}
Enum cardstatus{
Initial,
Reorder
}
2nd case
@knownvalues(countrycode)
Maxlength(10)
Minlength(5)
Scalar isocountry extends string;
Enum countrycode {
Aed,
Ind,
Aus,
Usa}
Please suggest
Beta Was this translation helpful? Give feedback.
All reactions