Skip to content

Commit 38f36bd

Browse files
committed
OBR-289: Add FloatAtLeast(1) validation for max_calls_per_agent
1 parent 3ee8998 commit 38f36bd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

genesyscloud/outbound_campaign/resource_genesyscloud_outbound_campaign_schema.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ func ResourceOutboundCampaign() *schema.Resource {
112112
Type: schema.TypeFloat,
113113
},
114114
`max_calls_per_agent`: {
115-
Description: `The maximum number of calls that can be placed per agent on this campaign. Supports decimal values (e.g., 1.5, 2.3).`,
116-
Optional: true,
117-
Type: schema.TypeFloat,
115+
Description: `The maximum number of calls that can be placed per agent on this campaign. Supports decimal values (e.g., 1.5, 2.3).`,
116+
Optional: true,
117+
Type: schema.TypeFloat,
118+
ValidateFunc: validation.FloatAtLeast(1),
118119
},
119120
`dnc_list_ids`: {
120121
Description: `DncLists for this Campaign to check before placing a call.`,

0 commit comments

Comments
 (0)