Skip to content

Releases: hashicorp/terraform-plugin-framework-validators

v0.16.0

12 Dec 22:39
Compare
Choose a tag to compare

FEATURES:

  • listvalidator: Added NoNullValues validator (#245)
  • mapvalidator: Added NoNullValues validator (#245)
  • setvalidator: Added NoNullValues validator (#245)
  • dynamicvalidator: New package which contains types.Dynamic specific validators (#249)

BUG FIXES:

  • Fixed bug with ConflictsWith and AlsoRequires validators where unknown values would raise invalid diagnostics during terraform validate. (#251)

v0.15.0

31 Oct 18:48
Compare
Choose a tag to compare

FEATURES:

  • ephemeralvalidator: Introduce new package with declarative validators for ephemeral resource configurations (#242)

v0.14.0

17 Oct 19:07
Compare
Choose a tag to compare

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 from terraform-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

09 Jul 16:38
Compare
Choose a tag to compare

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 and ValueFloat32sAre validators (#222)
  • mapvalidator: Added ValueInt32sAre and ValueFloat32sAre validators (#222)
  • setvalidator: Added ValueInt32sAre and ValueFloat32sAre validators (#222)

BUG FIXES:

  • Add the attribute from the request to the at-least-one validator's error message (#199)

v0.12.0

30 Aug 19:10
Compare
Choose a tag to compare

ENHANCEMENTS:

  • boolvalidator: Added All, Any, and AnyWithAllWarnings validators (#158)
  • datasourcevalidator: Added All, Any, and AnyWithAllWarnings validators (#158)
  • providervalidator: Added All, Any, and AnyWithAllWarnings validators (#158)
  • resourcevalidator: Added All, Any, and AnyWithAllWarnings validators (#158)

v0.11.0

03 Aug 14:11
Compare
Choose a tag to compare

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 from NoneOf, NoneOfCaseInsensitive, OneOf and OneOfCaseInsensitive validators (#152)

v0.10.0

08 Feb 18:42
Compare
Choose a tag to compare

ENHANCEMENTS:

  • listvalidator: Added IsRequired validator (#107)
  • setvalidator: Added IsRequired validator (#107)
  • objectvalidator: Added IsRequired validator (#107)

v0.9.0

20 Dec 13:52
32dc877
Compare
Choose a tag to compare

ENHANCEMENTS:

  • listvalidator: Added UniqueValues validator (#88)
  • stringvalidator: Added UTF8LengthAtLeast, UTF8LengthAtMost, and UTF8LengthBetween validators (#87)

v0.8.0

13 Dec 19:36
647da58
Compare
Choose a tag to compare

NOTES:

  • all: Support terraform-plugin-framework version 1.0.0 types handling (#83)

v0.7.0

30 Nov 20:08
e2c0055
Compare
Choose a tag to compare

BREAKING CHANGES:

  • all: Migrated implementations to support terraform-plugin-framework version 0.17.0 datasource/schema, provider/schema, and resource/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 as StringValuesAre (#80)
  • mapvalidator: The ValuesAre validator has been removed and split into element type-specific validators in the same package, such as StringValuesAre (#80)
  • metavalidator: The All and Any validators have been removed and split into type-specific packages, such as stringvalidator.Any (#80)
  • schemavalidator: The AlsoRequires, AtLeastOneOf, ConflictsWith, and ExactlyOneOf validators have been removed and split into type-specific packages, such as stringvalidator.ConflictsWith (#80)
  • setvalidator: The ValuesAre validator has been removed and split into element type-specific validators in the same package, such as StringValuesAre (#80)

FEATURES:

  • boolvalidator: New package which contains boolean type specific validators (#80)
  • objectvalidator: New package which contains object type specific validators (#80)