From 9d406694d3a66869151bc2ac91d3178800986a65 Mon Sep 17 00:00:00 2001 From: Josslyn Zhang Date: Mon, 3 Oct 2022 13:02:31 -0600 Subject: [PATCH 1/2] updated color to be a required field to match up api client --- honeycombio/resource_marker_setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honeycombio/resource_marker_setting.go b/honeycombio/resource_marker_setting.go index 80f3cae9..e6f3bdf1 100644 --- a/honeycombio/resource_marker_setting.go +++ b/honeycombio/resource_marker_setting.go @@ -25,7 +25,7 @@ func newMarkerSetting() *schema.Resource { }, "color": { Type: schema.TypeString, - Optional: true, + Required: true, ValidateFunc: validation.StringMatch(regexp.MustCompile(`^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$`), "invalid color hex code"), }, "dataset": { From bcaea30e38d039734b78d3b80974fca672e8d6bc Mon Sep 17 00:00:00 2001 From: Josslyn Zhang Date: Mon, 3 Oct 2022 14:13:14 -0600 Subject: [PATCH 2/2] updating doc --- docs/resources/marker_setting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/marker_setting.md b/docs/resources/marker_setting.md index c0fb19c5..47aeac53 100644 --- a/docs/resources/marker_setting.md +++ b/docs/resources/marker_setting.md @@ -26,7 +26,7 @@ The following arguments are supported: * `dataset` - (Required) The dataset this marker setting is placed on. * `type` - (Required) The type of the marker setting, Honeycomb.io can display markers in different colors depending on their type. -* `color` - (Optional) The color set for the marker as a hex color code (e.g. `#DF4661`) +* `color` - (Required) The color set for the marker as a hex color code (e.g. `#DF4661`) ## Attribute Reference