Skip to content

Commit

Permalink
update parameters to optional with pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustut authored and jomei committed Mar 21, 2022
1 parent dc10739 commit ecd4b7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ type TextFilterCondition struct {
}

type NumberFilterCondition struct {
Equals float64 `json:"equals,omitempty"`
DoesNotEqual float64 `json:"does_not_equal,omitempty"`
GreaterThan float64 `json:"greater_than,omitempty"`
LessThan float64 `json:"less_than,omitempty"`
GreaterThanOrEqualTo float64 `json:"greater_than_or_equal_to,omitempty"`
LessThanOrEqualTo float64 `json:"less_than_or_equal_to,omitempty"`
Equals *float64 `json:"equals,omitempty"`
DoesNotEqual *float64 `json:"does_not_equal,omitempty"`
GreaterThan *float64 `json:"greater_than,omitempty"`
LessThan *float64 `json:"less_than,omitempty"`
GreaterThanOrEqualTo *float64 `json:"greater_than_or_equal_to,omitempty"`
LessThanOrEqualTo *float64 `json:"less_than_or_equal_to,omitempty"`
IsEmpty bool `json:"is_empty,omitempty"`
IsNotEmpty bool `json:"is_not_empty,omitempty"`
}
Expand Down

0 comments on commit ecd4b7c

Please sign in to comment.