Choice Enums #46
ashutshkumr
started this conversation in
Reviews
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are usually two kinds of containers wrt. choice enums:
A container where all properties are related to
choice enums
.A container where some properties are related to
choice enums
while some are not.Problem is, in latter, we end up assigning the intended value to
choice
property which may seem confusing for following reasons:choice
is now overloaded between internal (string) and external (any object) representationA possible solution is to always mandate (as a contribution guideline) that whenever a
choice
is required inside a container, it should not contain any other unrelated properties. e.g.Beta Was this translation helpful? Give feedback.
All reactions