Skip to content

Commit

Permalink
Merge pull request #153 from yunify/upgrade-DescribeNotificationLists
Browse files Browse the repository at this point in the history
upgrade-DescribeNotificationLists
  • Loading branch information
huyujie authored Apr 14, 2020
2 parents 03efdbb + 1d26ea8 commit c7eee83
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions service/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type DescribeNotificationListsInput struct {
Limit *int `json:"limit" name:"limit" default:"10" location:"params"`
NotificationLists []*string `json:"notification_lists" name:"notification_lists" location:"params"` // Required
Offset *int `json:"offset" name:"offset" default:"0" location:"params"`
Owner *string `json:"owner" name:"owner" location:"params"` // Required
Owner *string `json:"owner" name:"owner" location:"params"`
}

func (v *DescribeNotificationListsInput) Validate() error {
Expand All @@ -88,13 +88,6 @@ func (v *DescribeNotificationListsInput) Validate() error {
}
}

if v.Owner == nil {
return errors.ParameterRequiredError{
ParameterName: "Owner",
ParentName: "DescribeNotificationListsInput",
}
}

return nil
}

Expand Down

0 comments on commit c7eee83

Please sign in to comment.