Unify canonical sequence index semantics for version decoding

This commit is contained in:
2026-09-12 01:31:54 +00:00
parent fd8a68d268
commit 244104f84f
5 changed files with 183 additions and 24 deletions

View File

@@ -434,5 +434,5 @@ func schemaIndex(segment pathSegment) (int, bool) {
return 0, false
}
index, err := strconv.Atoi(segment.key)
return index, err == nil && index >= 0
return index, err == nil && index >= 0 && strconv.Itoa(index) == segment.key
}