Skip to content

Commit

Permalink
add validator
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcping committed May 31, 2024
1 parent 41d568e commit 24f72ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/davinci/resource_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ func (r *FlowResource) Schema(ctx context.Context, req resource.SchemaRequest, r
MarkdownDescription: descriptionDescription.MarkdownDescription,
Optional: true,
Computed: true,

Validators: []validator.String{
stringvalidator.LengthAtLeast(attrMinLength),
},
},

"flow_json": schema.StringAttribute{
Expand Down

0 comments on commit 24f72ea

Please sign in to comment.