Closed magodo closed 4 years ago
Just realized that in terrafrom schema type system, there is only schema.TypeInt
, which corresponds to go's int type. So it makes sense to cast fetched data from ResourceData to int since those values were int by themselves.
Currently when a
Integer
property links to someInteger32Object
(same forInteger64Object
), the generated code for setting to and getting fromschema.ResourceData
is like below:The prefered code should be like below: