Closed mkschreder closed 1 year ago
I would like to specify in the schema that I expect either one or the other map key but not both. Something like this:
person_choice = { "name": tstr, "age" uint / "is_expired": bool }
I'm getting parse error.
Is this possible?
Two things:
person_choice = { "name": tstr, ("age": uint) / ("is_expired": bool) }
I would like to specify in the schema that I expect either one or the other map key but not both. Something like this:
I'm getting parse error.
Is this possible?