Append a child path suffix to a parent path. When the suffix is
omitted (e.g. transparent wrappers like union options), the parent
path is returned unchanged so the child inherits the parent's id.
Mirror of react/SchemaComponent.tsxjoinPath — bracketed array
indices like [0] append directly so tags + [0] becomes
tags[0], matching the canonical form used by html/a11y.ts and
core/fieldPath.ts.
Append a child path suffix to a parent path. When the suffix is omitted (e.g. transparent wrappers like union options), the parent path is returned unchanged so the child inherits the parent's id.
Mirror of
react/SchemaComponent.tsxjoinPath— bracketed array indices like[0]append directly sotags+[0]becomestags[0], matching the canonical form used byhtml/a11y.tsandcore/fieldPath.ts.