Function: normalizeFieldKey()
normalizeFieldKey(
key):string
Defined in: packages/core/src/utils.ts:257
Normalise a concrete field key to the bracket notation used in config.
Replaces .0., .${index}., and any .<digits>. segments with []..
Parameters
key
string
A concrete field key potentially containing numeric array indices.
Returns
string
The normalized key with array index segments replaced by [].
Examples
normalizeFieldKey('items.0.name') → 'items[].name'
normalizeFieldKey('items.${index}.name') → 'items[].name'
normalizeFieldKey('tags.2') → 'tags[]'