log name of mising field, not path
Kubernetes-commit: 180c312f31f5de372eb27b5a120d5a6ce94bc07c
This commit is contained in:
parent
ef349ea77d
commit
f4936cb9cc
|
@ -43,7 +43,7 @@ Takes dictionary as argument with keys:
|
|||
{{- with include "output" (set $ "schema" .) -}}
|
||||
{{- . -}}
|
||||
{{- else -}}
|
||||
error: field "{{$.FieldPath}}" does not exist
|
||||
error: field "{{index $.FieldPath (sub (len $.FieldPath) 1)}}" does not exist
|
||||
{{- end -}}
|
||||
{{- break -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -336,7 +336,7 @@ func TestPlaintext(t *testing.T) {
|
|||
},
|
||||
{
|
||||
// Shows that the typeguess puts Object tpye in title case
|
||||
Name: "ArrayUnknown",
|
||||
Name: "ObjectTitle",
|
||||
Subtemplate: "typeGuess",
|
||||
Context: map[string]any{
|
||||
"schema": map[string]any{
|
||||
|
|
Loading…
Reference in New Issue