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
Add parameter-based provider-defined function validation (#971)
* Add `function/validator` package
* Implement parameter validators in parameter types
* Initial implementation of parameter validation logic
* Refactor function parameter validators from `function/validator` package to `function` package.
* Add parameter unit tests
* Add parameter tests to arguments_data_test.go
* Switch dynamic parameter test to use `DynamicTypeMust()`
* Correct error handling and dynamic type test cases
* Add variadic parameter test cases
* Add variadic parameter support and test for `tfprotov6`
* Add copyright headers
* Resolve `forcetypeassert` linter errors
* Resolve test failures from merge
* Add changelog entries
* Skip appending parameter value if validation fails
* Support parameter validation for custom types
* Refactor parameter validator interface names for clarity.
* Add website documentation for parameter-based validation
* Add copyright headers
* Update changelog entries
* Rename `Validate()` method in parameter validator interfaces to `ValidateParameter<Type>()`
* Skip appending variadic values if there is an error in validation
* Update website/docs/plugin/framework/validation.mdx
Co-authored-by: Austin Valle <[email protected]>
* Replace `create{type}Value` test helper functions with `New{Type}ValueMust` functions
---------
Co-authored-by: Benjamin Bennett <[email protected]>
Co-authored-by: Austin Valle <[email protected]>
0 commit comments