decimalPrecision is a bool on classic widgets and an int32 on dynamic ones

SkillCloud & infra

Use when wiring decimalPrecision on a coralogix_dashboard widget. It is a bool on classic widgets and an int32 on dynamic ones, so copying either side's code silently produces the wrong type.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the decimalPrecision is a bool on classic widgets and an int32 on dynamic ones skill

What this skill tells your AI

The instructions your AI receives, as published by coralogix/terraform-provider-coralogix in .claude/skills/classic-vs-dynamic-decimal-precision/SKILL.md and read by ahel’s review.

Trigger: adding or reviewing decimal_precision on a coralogix_dashboard widget, or copying the block from one widget family to the other.

Fix: read the SDK field's Go type first.

DecimalPrecision *bool  // classic: a switch turning value abbreviation off -> BoolAttribute
DecimalPrecision *int32 // dynamic: a count of decimal places, 0-15      -> Int64Attribute

Classic widgets pair it with a separate decimal field; dynamic ones have no decimal. Say which meaning applies in the MarkdownDescription, since the attribute name is identical.

Why: one JSON name carries two meanings. Copying a whole schema block across families gives a schema that compiles and type-checks, then rejects or misreads every value.

Signals

GitHub stars
22
Forks
14
Last commit
Sep 2026
Advanced
Item type
skill
Key
classic-vs-dynamic-decimal-precision
Source
github.com/coralogix/terraform-provider-coralogix