new-enum-attribute-must-not-default-to-unspecified
Use when adding an Optional+Computed enum to a released resource, or a Provider migration job fails with 'expected NoOp, got action(s): [update]'. A static…
от coralogix★ 22 звезды на GitHub
Установить new-enum-attribute-must-not-default-to-unspecified в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
A new enum attribute must not default to unspecified
Trigger: adding an enum to a resource that already has released versions, or a
Provider migration (...) job failing expected NoOp, got action(s): [update] while every
create-and-apply test passes.
Fix: three parts, all needed.
Optional: true, Computed: true, // 1. no Default
PlanModifiers: []planmodifier.String{stringplanmodifier.UseNonNullStateForUnknown()}, // 2.
// 3. flatten an unmapped value (the enum's zero value "") to utils.UNSPECIFIED, not ""
A default claims what the API stores for an omitted field, and it usually stores something else.
Part 3 stops flatten writing "", which the schema disallows. Part 2 stops the framework planning
an omitted nested Optional+Computed attribute as unknown; the non-null variant keeps a list element
added on update unknown. Removing the attribute now keeps the previous value, so name unspecified
as the reset in the description.
Why it hides: sending a value means the API echoes it, so the map never misses and the plan is
never unknown. Only migration and PlanOnly steps omit the field.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл new-enum-attribute-must-not-default-to-unspecified?
Use when adding an Optional+Computed enum to a released resource, or a Provider migration job fails with 'expected NoOp, got action(s): [update]'. A static unspecified default breaks upgrades.
Как установить скилл new-enum-attribute-must-not-default-to-unspecified?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл new-enum-attribute-must-not-default-to-unspecified запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…