hashicorp / hashicorp/terraform-plugin-codegen-spec
Consider providing a way to fully specify custom type
Open
- Dominant language
- Go
- Stars
- 12
- Forks
- 9
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 1
Description
Within the Generator there is currently no way to fully override custom types for lists, maps, objects and sets. For instance:
```go
case e.List != nil:
if e.List.CustomType != nil {
return fmt.Sprintf("%s{\nElemType: %s,\n}", e.List.CustomType.Type, GetElementType(e.List.ElementType))
```
We may need a way in the specification to ensure that developers can fully specify how this should be created as code since its not guaranteed that the custom type will be implemented with an `ElemType` field. Similarly with object types.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.