Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/state/graph/httproute.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,12 @@ func validatePathMatch(
}

if *path.Type != v1beta1.PathMatchPathPrefix {
valErr := field.NotSupported(fieldPath, *path.Type, []string{string(v1beta1.PathMatchPathPrefix)})
valErr := field.NotSupported(fieldPath.Child("type"), *path.Type, []string{string(v1beta1.PathMatchPathPrefix)})
allErrs = append(allErrs, valErr)
}

if err := validator.ValidatePathInPrefixMatch(*path.Value); err != nil {
valErr := field.Invalid(fieldPath, *path.Value, err.Error())
valErr := field.Invalid(fieldPath.Child("value"), *path.Value, err.Error())
allErrs = append(allErrs, valErr)
}

Expand Down