fix errror message using replacement wildcard and create option

This commit is contained in:
koba1t
2022-04-12 05:14:24 +09:00
parent e5041bae6f
commit 5e84de2a89
4 changed files with 51 additions and 5 deletions

View File

@@ -541,6 +541,9 @@ func (l PathGetter) getFilter(part, nextPart string, fieldPath *[]string) (Filte
case part == "-":
// part is a hyphen
return GetElementByIndex(-1), nil
case part == "*":
// part is a hyphen
return nil, fmt.Errorf("cannot support create option in a multi-value target now")
case IsListIndex(part):
// part is surrounded by brackets
return l.elemFilter(part)