Skip to content

Commit 34c8c55

Browse files
authored
validate step title at plan time to avoid unexpected apply errors (#250)
* validate step title at plan time to avoid unexpected apply errors * update docs --------- Co-authored-by: Chris McNabb <[email protected]> @raizyr
1 parent 3befa22 commit 34c8c55

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/resources/port_action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ Optional:
514514
Required:
515515

516516
- `order` (List of String) The order of the properties in this step
517-
- `title` (String) The step's title
517+
- `title` (String) The step's title (max 25 characters)
518518

519519

520520
<a id="nestedatt--self_service_trigger--user_properties"></a>

port/action/schema.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ func ActionSchema() map[string]schema.Attribute {
133133
NestedObject: schema.NestedAttributeObject{
134134
Attributes: map[string]schema.Attribute{
135135
"title": schema.StringAttribute{
136-
MarkdownDescription: "The step's title",
136+
MarkdownDescription: "The step's title (max 25 characters)",
137137
Required: true,
138+
Validators: []validator.String{
139+
stringvalidator.LengthAtMost(25),
140+
},
138141
},
139142
"order": schema.ListAttribute{
140143
MarkdownDescription: "The order of the properties in this step",

0 commit comments

Comments
 (0)