v0.0.507 fix jsonfilter:"-" not working
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 7m7s

This commit is contained in:
2024-08-25 15:41:17 +02:00
parent 03a9b276d8
commit 8dcd8a270a
4 changed files with 9 additions and 5 deletions

View File

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