Make code DRY: Replace AttributeTypes() by ElementType(...) ? #59
Labels
enhancement
New feature or request
go
Pull requests that update Go code
good first issue
Good for newcomers
Wait & See
Lowest priority
https://discuss.hashicorp.com/t/how-to-declare-a-jsontypes-normalizedtype-inside-attributetypes-function/69427.
Try to follow SBGoods advise.
Sorry that you’re running into trouble here. If you only need the map[string]attr.Type for type conversion to and from a types.Object framework type, you likely don’t need to implement the CustomFormModelAttributeTypes() yourself. The framework provides the ElementType(ctx) method to get the element types that you can use instead..
The text was updated successfully, but these errors were encountered: