opentofu/helper/validation
Chris Marchesi edb8e8904c
helper/validation: Add NoZeroValues
This adds NoZeroValues, a small SchemaValidateFunc that checks that a
defined value is not a zero value. It's useful for situations where you
want to keep someone from explicitly entering a zero value (ie:
literally "0", or an empty string) on a required field, and want to
catch it in the validation stage, versus during apply using GetOk.
2017-09-25 17:19:23 -07:00
..
validation_test.go helper/validation: Add NoZeroValues 2017-09-25 17:19:23 -07:00
validation.go helper/validation: Add NoZeroValues 2017-09-25 17:19:23 -07:00