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
#931 will introduce a new internal interface fwfunction.ParameterWithValidateImplementation and fwfunction.ReturnWithValidateImplementation that will enable us to implement logic for validating function parameter and return definitions.
We should introduce validation on all collection parameter and return definitions to ensure that element types are populated.
…ame validation
Reference: #965
Reference: #967
The framework will now raise implementation errors if a function parameter or return definition is missing underlying type information (e.g. collection element type or object attribute type).
…ame validation (#991)
Reference: #965
Reference: #967
The framework will now raise implementation errors if a function parameter or return definition is missing underlying type information (e.g. collection element type or object attribute type). Only framework types are considered in the initial implementation.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Module version
Use-cases
#931 will introduce a new internal interface
fwfunction.ParameterWithValidateImplementation
andfwfunction.ReturnWithValidateImplementation
that will enable us to implement logic for validating function parameter and return definitions.We should introduce validation on all collection parameter and return definitions to ensure that element types are populated.
Proposal
Implementation could look similar to collection attributes, such as
ListAttribute
:terraform-plugin-framework/datasource/schema/list_attribute.go
Lines 210 to 212 in f86c88c
We should add this to:
ListParameter
ListReturn
MapParameter
MapReturn
SetParameter
SetReturn
References
The text was updated successfully, but these errors were encountered: