You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ra: fix subkey_to_object to support direct array access
Record Accessor API couldn't handle direct array access
patterns like $array[0]. This fix changes the condition that
checks if a lookup succeeded by replacing !found with matched == 0,
which properly tracks array element access.
Added test cases to verify array access works:
- Direct array access ($array[0])
- Nested array access ($matrix[1][2])
- Mixed array and map access ($records[1]['name'])
- Access with out-of-bounds indices
- Nonexistent key access
- Type mismatch handling
- Nested path failures
Fixes#9958
Signed-off-by: Jorge Niedbalski <[email protected]>
0 commit comments