|
@@ -32,6 +32,7 @@ func parseCondition(m json.Map, index int) (*Condition, error) {
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
+// swagger:model ConditionOperator
|
|
|
type ConditionOperator string
|
|
|
|
|
|
const (
|
|
@@ -67,6 +68,7 @@ const (
|
|
|
LogicAND = "and"
|
|
|
)
|
|
|
|
|
|
+// swagger:model ConditionLogic
|
|
|
type ConditionLogic string
|
|
|
|
|
|
func (s ConditionLogic) IsValid() bool {
|
|
@@ -82,6 +84,7 @@ func (s ConditionLogic) IsValid() bool {
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
+// swagger:model Condition
|
|
|
type Condition struct {
|
|
|
Field string
|
|
|
Logic ConditionLogic
|