v0.0.278 DYN-166 bugfix jsonfilter
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 52s

This commit is contained in:
2023-10-05 12:54:07 +02:00
parent 7c40bcfd3c
commit 9cc0abf9e0
2 changed files with 3 additions and 3 deletions

View File

@@ -1326,7 +1326,7 @@ func typeFields(t reflect.Type) structFields {
var jsonfilter []string
jsonfilterTag := sf.Tag.Get("jsonfilter")
if isValidTag(jsonfilterTag) {
if jsonfilterTag != "" && jsonfilterTag != "-" {
jsonfilter = strings.Split(jsonfilterTag, ",")
}