Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (v ListRequestConfigurationsValidator) ValidateList(ctx context.Context, re
if !(hasReviewerStages || isAutoApprove || isNotRequestable) {
resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic(
req.Path,
"invalid request configuration. Please specify a reviewer_stage, set auto_approve to true, or set is_requestable to false",
"invalid request configuration. Please specify a reviewer_stage, set auto_approval to true, or set allow_requests to false",
req.Path.String()+": "+v.Description(ctx),
))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (v SetRequestConfigurationsValidator) ValidateSet(ctx context.Context, req
if !(hasReviewerStages || isAutoApprove || isNotRequestable) {
resp.Diagnostics.Append(validatordiag.InvalidAttributeTypeDiagnostic(
req.Path,
"invalid request configuration. Please specify a reviewer_stage, set auto_approve to true, or set is_requestable to false",
"invalid request configuration. Please specify a reviewer_stage, set auto_approval to true, or set allow_requests to false",
req.Path.String()+": "+v.Description(ctx),
))
}
Expand Down