Browse Source

conditions orders swagger

0x4a52466c696e74 1 year ago
parent
commit
132ccc5246
1 changed files with 3 additions and 0 deletions
  1. 3 0
      conditions.go

+ 3 - 0
conditions.go

@@ -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