Releases: hashicorp/terraform-plugin-framework-validators
Releases · hashicorp/terraform-plugin-framework-validators
v0.15.0
v0.14.0
NOTES:
- all: This Go module has been updated to Go 1.22 per the Go support policy. It is recommended to review the Go 1.22 release notes before upgrading. Any consumers building on earlier Go versions may experience errors. (#229)
- all: Previously, creating validators with invalid data would result in a
nil
value being returned and a panic fromterraform-plugin-framework
. This has been updated to return an implementation diagnostic referencing the invalid data/validator during config validation. (#235)
FEATURES:
- boolvalidator: Added
Equals
validator (#232)
ENHANCEMENTS:
- all: Implemented parameter interfaces for all value-based validators. This allows these validators to be used with provider-defined functions. (#235)
v0.13.0
NOTES:
- all: This Go module has been updated to Go 1.21 per the Go support policy. It is recommended to review the Go 1.21 release notes before upgrading. Any consumers building on earlier Go versions may experience errors (#198)
FEATURES:
- int32validator: New package which contains int32 type specific validators (#222)
- float32validator: New package which contains float32 type specific validators (#222)
ENHANCEMENTS:
- listvalidator: Added
ValueInt32sAre
andValueFloat32sAre
validators (#222) - mapvalidator: Added
ValueInt32sAre
andValueFloat32sAre
validators (#222) - setvalidator: Added
ValueInt32sAre
andValueFloat32sAre
validators (#222)
BUG FIXES:
- Add the attribute from the request to the at-least-one validator's error message (#199)
v0.12.0
ENHANCEMENTS:
- boolvalidator: Added
All
,Any
, andAnyWithAllWarnings
validators (#158) - datasourcevalidator: Added
All
,Any
, andAnyWithAllWarnings
validators (#158) - providervalidator: Added
All
,Any
, andAnyWithAllWarnings
validators (#158) - resourcevalidator: Added
All
,Any
, andAnyWithAllWarnings
validators (#158)
v0.11.0
NOTES:
- This Go module has been updated to Go 1.19 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#117)
ENHANCEMENTS:
- int64validator: Added
equalToProductOf
validator (#129)
BUG FIXES:
- stringvalidator: Removed double quoting in
Description
returned fromNoneOf
,NoneOfCaseInsensitive
,OneOf
andOneOfCaseInsensitive
validators (#152)
v0.10.0
v0.9.0
v0.8.0
v0.7.0
BREAKING CHANGES:
- all: Migrated implementations to support terraform-plugin-framework version 0.17.0
datasource/schema
,provider/schema
, andresource/schema
packages with type-specific validation (#80) - listvalidator: The
ValuesAre
validator has been removed and split into element type-specific validators in the same package, such asStringValuesAre
(#80) - mapvalidator: The
ValuesAre
validator has been removed and split into element type-specific validators in the same package, such asStringValuesAre
(#80) - metavalidator: The
All
andAny
validators have been removed and split into type-specific packages, such asstringvalidator.Any
(#80) - schemavalidator: The
AlsoRequires
,AtLeastOneOf
,ConflictsWith
, andExactlyOneOf
validators have been removed and split into type-specific packages, such asstringvalidator.ConflictsWith
(#80) - setvalidator: The
ValuesAre
validator has been removed and split into element type-specific validators in the same package, such asStringValuesAre
(#80)
FEATURES:
v0.6.0
NOTES:
- all: This Go module has been updated for deprecations in terraform-plugin-framework version 0.15.0 (#72)
- all: This Go module has been updated to make it compatible with the breaking changes in terraform-plugin-framework version 0.16.0 (#77)
BUG FIXES:
- mapvalidator: Updated
KeysAre()
to return all errors instead of just the first (#74)