Skip to content

Commit

Permalink
Fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdatadog committed Feb 21, 2025
1 parent 7849ef4 commit f428429
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions datadog/resource_datadog_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -10883,22 +10883,24 @@ func getNumberFormatFormulaSchema() map[string]*schema.Schema {
Type: schema.TypeList,
MinItems: 1,
MaxItems: 1,
Elem: schema.Resource{
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"canonical": &schema.Schema{
Description: "",
Type: schema.TypeList,
MinItems: 1,
MaxItems: 1,
Elem: schema.Resource{
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"per_unit_name": &schema.Schema{
Description: "",
Type: schema.TypeString,
Optional: true,
},
"unit_name": &schema.Schema{
Description: "",
Type: schema.TypeString,
Optional: true,
},
},
},
Expand All @@ -10908,11 +10910,12 @@ func getNumberFormatFormulaSchema() map[string]*schema.Schema {
Type: schema.TypeList,
MinItems: 1,
MaxItems: 1,
Elem: schema.Resource{
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"label": &schema.Schema{
Description: "",
Type: schema.TypeString,
Required: true,
},
},
},
Expand All @@ -10925,11 +10928,12 @@ func getNumberFormatFormulaSchema() map[string]*schema.Schema {
Type: schema.TypeList,
MinItems: 0,
MaxItems: 1,
Elem: schema.Resource{
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"unit_name": &schema.Schema{
Description: "",
Type: schema.TypeString,
Required: true,
},
},
},
Expand Down

0 comments on commit f428429

Please sign in to comment.