schema-attribute-needs-matching-attr-type-map
Use when a coralogix_dashboard apply or state upgrade fails with 'Value Conversion Error' at 'Path: layout' after adding a widget attribute. Widen the…
от coralogix★ 22 звезды на GitHub
Установить schema-attribute-needs-matching-attr-type-map в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
A new schema attribute needs a matching attr.Type map entry
Trigger: You added an attribute to a widget schema. The build passes, but tests or applies
fail with Value Conversion Error and Path: layout, listing two near-identical type dumps.
Fix: Widen every hand-written map[string]attr.Type that describes the same object, not just
the schema. For dashboards that is widgetModelAttr() in
internal/provider/dashboards/resource_coralogix_dashboard.go:
"color_scheme": types.StringType,
"hash_colors": types.BoolType, // add next to the neighbours you copied in the schema
Grep both sides before you start; a widget may be described in more than one place:
rg '"<new_attribute>"' internal/provider/dashboards # schema sites
rg '"<sibling_attribute>": types\.' internal/provider/dashboards # attr.Type map sites
To find the mismatch fast, diff the two type dumps from the error rather than reading them.
Faster: go test ./internal/provider/dashboards/ -run TestWidgetSchemaMatchesWidgetModelAttr
walks the whole widget tree and names the attribute that is in one side and not the other.
Why: layout is a types.List of widget objects. The framework builds the element type from
the attr.Type map and the state type from the schema. It rejects any object whose two descriptions
differ, even by one attribute. Whether the Go model field is a struct pointer or a types.Object
does not matter — what matters is that some ancestor is a list or object described by a hand-written
map, which is true of every dashboard widget.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл schema-attribute-needs-matching-attr-type-map?
Use when a coralogix_dashboard apply or state upgrade fails with 'Value Conversion Error' at 'Path: layout' after adding a widget attribute. Widen the hand-written attr.Type map too.
Как установить скилл schema-attribute-needs-matching-attr-type-map?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schema-attribute-needs-matching-attr-type-map запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…