The schema definitions pointed to by a union are generally objects or types with a clear mapping to an object, like a record. All the variants must be represented by a CBOR map (or JSON Object) and include a $type field indicating the variant type.
What about tokens, which are encoded as strings? Those are themselves a type reference, similar to the $type field within a typed object.
The specs currently say:
What about tokens, which are encoded as strings? Those are themselves a type reference, similar to the
$type
field within a typed object.