atproto_codegen/emit/union
Open-union synthesis: a named type per union field with one variant per
ref plus Other(Dynamic), $type-dispatching codecs included.
Values
pub fn emit_union(
cfg: config.Config,
nsid: String,
name: String,
refs: List(String),
) -> String
An open union: one variant per ref plus Other(Dynamic), which round-trips
unrecognized $types untouched instead of destroying them.