Use when tfgen check fails with RENDERER_SHAPE_UNSUPPORTED set of object, or RENDERER_OUTPUT_INVALID on a dotted OpenAPI component like notification_center.ConnectorConfigField. Fix collectionConv and modelTypeName, not the generated files.
72
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Trigger: tfgen check reports set of object is not supported, or generated model.go has an invalid type such as notification_center.FooModel.
Fix:
collectionConv must accept model.Set of objects (empty objects still rejected). Expand/flatten use expandElements and flattenSet; nested diagnostics use the collection path, not AtListIndex. Do not pair set items with prior by slice index. Nested keepPriorOrder lists still use sameUnordered in same*. The Thing golden fixture must include a set of objects so this flatten path is generated.modelTypeName must be model.GoName(schema)+"Model", same as SDK camelize. Do not concatenate the raw schema name.Why: OpenAPI x-coralogix-collection: set on object arrays is the contract for Terraform Sets. Dotted component names are valid OpenAPI keys but not Go identifiers.
coralogix/terraform-provider-coralogix
8110e9e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.