Skip to content

Commit

Permalink
fix vallidate
Browse files Browse the repository at this point in the history
  • Loading branch information
senk8 committed Feb 26, 2024
1 parent 614d836 commit ceaae81
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion proto/alert/entity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/alert/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions proto/alert/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,15 @@ func (r *TestNotificationRequest) Validate() error {
)
}

// Validate RequestAuthzNotificationRequest
func (r *RequestAuthzNotificationRequest) Validate() error {
return validation.ValidateStruct(r,
validation.Field(&r.ProjectId, validation.Required),
validation.Field(&r.ProjectName, validation.Required),
validation.Field(&r.UserName, validation.Required),
)
}

// Validate ListAlertCondNotificationRequest
func (r *ListAlertCondNotificationRequest) Validate() error {
return validation.ValidateStruct(r,
Expand Down
2 changes: 1 addition & 1 deletion proto/finding/entity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/finding/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/access_token.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/entity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/policy.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/role.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/iam/user_reserved.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/project/entity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/project/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/report/entity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/report/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ceaae81

Please sign in to comment.