Support Dimension consistently across path traversal API #37

Closed
opened 2026-07-12 14:45:41 +00:00 by UserCurt · 3 comments
UserCurt commented 2026-07-12 14:45:41 +00:00 (Migrated from codeberg.org)

The Dimension named argument is not supported consistently across the path traversal APIs. Currently, mpath.<function> and mpath.Pointer.<method> are inconsistent:

Traversal API Function Method Notes
resolve Scalar only Scalar or vector Function incorrectly rejects vectors
get Scalar or vector Scalar or vector Function does not document Dimension
set Unsupported Unsupported Not yet supported, and requires more thought on meaning
remove Unsupported Unsupported Unclear if meaningful
exists Not implemented Not implemented Not yet implemented
The `Dimension` named argument is not supported consistently across the path traversal APIs. Currently, `mpath.<function>` and `mpath.Pointer.<method>` are inconsistent: | Traversal API | Function | Method | Notes | |---|---|---|---| | `resolve` | Scalar only | Scalar or vector | Function incorrectly rejects vectors | | `get` | Scalar or vector | Scalar or vector | Function does not document `Dimension` | | `set` | Unsupported | Unsupported | Not yet supported, and requires more thought on meaning | | `remove` | Unsupported | Unsupported | Unclear if meaningful | | `exists` | Not implemented | Not implemented | Not yet implemented |
UserCurt commented 2026-07-15 23:56:40 +00:00 (Migrated from codeberg.org)

Partially addressed by 5996c8c.

resolve and get now accept a vector Dimension. Repeated values are now supported for intentional repeat dimension assignment.

This issue remains open for set at the same time as issue #35 and for the future exists API.

Partially addressed by `5996c8c`. `resolve` and `get` now accept a vector `Dimension`. Repeated values are now supported for intentional repeat dimension assignment. This issue remains open for `set` at the same time as issue #35 and for the future `exists` API.
UserCurt commented 2026-07-19 23:23:07 +00:00 (Migrated from codeberg.org)

exists created in in e91fdb8, which progresses this issue as Dimension is supported with vectors.

This issue remains open for set.

`exists` created in in `e91fdb8`, which progresses this issue as `Dimension` is supported with vectors. This issue remains open for `set`.
UserCurt commented 2026-07-20 00:17:49 +00:00 (Migrated from codeberg.org)

set now supports Dimension in 72c5cc9, finalizing the full traversal API suite supporting this named argument.

`set` now supports `Dimension` in `72c5cc9`, finalizing the full traversal API suite supporting this named argument.
Sign in to join this conversation.
No description provided.