Skip to content

Commit 44e1b56

Browse files
committed
update schema
1 parent 01341de commit 44e1b56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/provider/schemas/deployment.go

+5
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func DeploymentResourceSchemaAttributes() map[string]resourceSchema.Attribute {
121121
NestedObject: resourceSchema.NestedAttributeObject{
122122
Attributes: DeploymentEnvironmentVariableResourceAttributes(),
123123
},
124+
Validators: []validator.List{
125+
listvalidator.UniqueValues(),
126+
listvalidator.UniqueValues(),
127+
},
124128
MarkdownDescription: "Deployment environment variables",
125129
Required: true,
126130
},
@@ -207,6 +211,7 @@ func DeploymentResourceSchemaAttributes() map[string]resourceSchema.Attribute {
207211
Validators: []validator.List{
208212
// Dynamic validation with 'executor' done in the resource.ValidateConfig function
209213
listvalidator.SizeAtLeast(1),
214+
listvalidator.UniqueValues(),
210215
},
211216
},
212217
"scheduler_au": resourceSchema.Int64Attribute{

0 commit comments

Comments
 (0)