Skip to content

Releases: hashicorp/terraform-plugin-framework-validators

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)

v0.6.0

17 Nov 10:20
Compare
Choose a tag to compare

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)

v0.5.0

30 Aug 14:58
4a4c520
Compare
Choose a tag to compare

NOTES:

  • This Go module has been updated to Go 1.18 per the Go support policy. Any consumers building on earlier Go versions may experience errors. (#55)

FEATURES:

  • Introduced datasourcevalidator package with AtLeastOneOf(), Conflicting(), ExactlyOneOf(), and RequiredTogether() validation functions (#60)
  • Introduced providervalidator package with AtLeastOneOf(), Conflicting(), ExactlyOneOf(), and RequiredTogether() validation functions (#60)
  • Introduced resourcevalidator package with AtLeastOneOf(), Conflicting(), ExactlyOneOf(), and RequiredTogether() validation functions (#60)

BUG FIXES:

  • all: Included missing attribute path details in error diagnostics since they are currently not output by Terraform (#61)

v0.4.0

20 Jul 15:26
Compare
Choose a tag to compare

FEATURES:

  • Introduced metavalidator package with Any(), AnyWithAllWarnings(), and All() validation functions (#43)
  • Introduced schemavalidator package with 4 new validation functions: RequiredWith(), ConflictsWith(), AtLeastOneOf(), ExactlyOneOf() (#32)

ENHANCEMENTS:

  • int64validator: Added AtLeastSumOf(), AtMostSumOf() and EqualToSumOf() validation functions (#29)

v0.3.0

29 Jun 17:42
Compare
Choose a tag to compare

FEATURES:

  • Introduced listvalidator package with ValuesAre() validation functions (#37)
  • Introduced mapvalidator package with KeysAre() and ValuesAre() validation functions (#38)
  • Introduced numbervalidator package with OneOf() and NoneOf() validation functions (#42)
  • Introduced setvalidator package with ValuesAre() validation function (#36)

ENHANCEMENTS:

  • float64validator: Added OneOf() and NoneOf() validation functions (#42)
  • int64validator: Added OneOf() and NoneOf() validation functions (#42)
  • listvalidator: Added SizeAtLeast(), SizeAtMost() and SizeBetween validation functions (#41)
  • mapvalidator: Added SizeAtLeast(), SizeAtMost() and SizeBetween validation functions (#39)
  • setvalidator: Added SizeAtLeast(), SizeAtMost() and SizeBetween validation functions (#40)
  • stringvalidator: Added OneOf() and NoneOf() (case sensitive), and OneOfCaseInsensitive() and NoneOfCaseInsensitive() (case insensitive) validation functions (#45)