diff --git a/port/scorecard/schema.go b/port/scorecard/schema.go index 0054d8a0..e6b03fe4 100644 --- a/port/scorecard/schema.go +++ b/port/scorecard/schema.go @@ -32,6 +32,9 @@ func RuleSchema() map[string]schema.Attribute { "identifier": schema.StringAttribute{ MarkdownDescription: "The identifier of the rule", Required: true, + Validators: []validator.String{ + stringvalidator.LengthBetween(1, 20), + }, }, "title": schema.StringAttribute{ MarkdownDescription: "The title of the rule",