We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2afd313 commit f0182f8Copy full SHA for f0182f8
1 file changed
plugins/config/main.go
@@ -67,19 +67,14 @@ type Expression struct {
67
68
type ExpressionBackend struct {
69
Field string `yaml:"field"`
70
- Operator Operator `yaml:"operator"`
+ Operator string `yaml:"operator"`
71
Value interface{} `yaml:"value"`
72
}
73
74
-type Operator struct {
75
- Label string `yaml:"label"`
76
- Value string `yaml:"value"`
77
-}
78
-
79
func (b *ExpressionBackend) ToExpression() Expression {
80
return Expression{
81
Field: b.Field,
82
- Operator: b.Operator.Value,
+ Operator: b.Operator,
83
Value: b.Value,
84
85
0 commit comments