You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the code generator iterates over the spec and generates custom type and value types for each attribute that has an associated_external_type. This could result in the generation of many custom types that provide the same functionality.
Consideration should be given to consolidating the generation of custom type and value types in instances where the code contained in the generated functions is essentially identical. For example:
Handling of the generation of attribute-specific diagnostics would require further consideration under these circumstances, for example:
ifv.IsUnknown() {
diags.Append(diag.NewErrorDiagnostic(
"BoolAttributeValue Value Is Unknown",
`"BoolAttributeValue" is unknown.`,
))
returnnil, diags
}
The text was updated successfully, but these errors were encountered:
Currently, the code generator iterates over the spec and generates custom type and value types for each attribute that has an
associated_external_type
. This could result in the generation of many custom types that provide the same functionality.For example, given the following spec:
The code generator will produce the following:
Consideration should be given to consolidating the generation of custom type and value types in instances where the code contained in the generated functions is essentially identical. For example:
Handling of the generation of attribute-specific diagnostics would require further consideration under these circumstances, for example:
The text was updated successfully, but these errors were encountered: