I have an object that is something like this:
{
"colorRestrictions": {
"availableColors":[ ... ],
"excludedColors": [ ... ]
}
}
How do I translate this into a proto file considering that colorRestriction
is an object that can have either of the arrays?
The property oneof
doesn't allow for repeated
within the declaration.
I guess it's something common but I couldn't find a straight answer, any suggestions? Thanks