mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 17:19:06 +01:00
refactor(config): add omitempty on some fields
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
type (
|
||||
FieldConfig struct {
|
||||
Default FieldMode `json:"default" validate:"omitempty,oneof=keep drop redact"`
|
||||
Config map[string]FieldMode `json:"config" validate:"dive,oneof=keep drop redact"`
|
||||
Config map[string]FieldMode `json:"config,omitempty" yaml:"config,omitempty" validate:"dive,oneof=keep drop redact"`
|
||||
}
|
||||
FieldMode string
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
type (
|
||||
LogFilter[T Filterable] struct {
|
||||
Negative bool
|
||||
Values []T
|
||||
Values []T `json:",omitempty"`
|
||||
} // @name LogFilter
|
||||
Filterable interface {
|
||||
comparable
|
||||
|
||||
Reference in New Issue
Block a user