File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ func addTask() *db.Task {
222
222
223
223
if err != nil {
224
224
fmt .Println ("error during insertion of task:" )
225
- if j , err := json .Marshal (t ); err == nil {
225
+ if j , e := json .Marshal (t ); e == nil {
226
226
fmt .Println (string (j ))
227
227
} else {
228
228
fmt .Println ("can not stringify task object" )
Original file line number Diff line number Diff line change @@ -723,6 +723,8 @@ definitions:
723
723
type :
724
724
- string
725
725
- ' null'
726
+ limit :
727
+ type : string
726
728
params :
727
729
type : object
728
730
properties :
@@ -733,7 +735,7 @@ definitions:
733
735
diff :
734
736
type : boolean
735
737
limit :
736
- type : string
738
+ type : array
737
739
message :
738
740
type : string
739
741
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ type Task struct {
77
77
Params MapStringAnyField `db:"params" json:"params,omitempty"`
78
78
79
79
// Limit is deprecated, use Params.Limit instead
80
- Limit string `db:"hosts_limit " json:"limit"`
80
+ Limit string `db:"- " json:"limit"`
81
81
}
82
82
83
83
func (task * Task ) FillParams (target interface {}) (err error ) {
Original file line number Diff line number Diff line change @@ -1564,6 +1564,9 @@ paths:
1564
1564
type : string
1565
1565
message :
1566
1566
type : string
1567
+ limit :
1568
+ type : string
1569
+ deprecated : true
1567
1570
params :
1568
1571
type : object
1569
1572
properties :
@@ -1574,7 +1577,7 @@ paths:
1574
1577
diff :
1575
1578
type : boolean
1576
1579
limit :
1577
- type : string
1580
+ type : array
1578
1581
1579
1582
required : true
1580
1583
responses :
You can’t perform that action at this time.
0 commit comments