tlkamp/terraform-provider-validation

Support multiple validations in a single block

Closed this issue ยท 1 comments

Currently only one validation can be performed within a resource/data source, and only one message can be displayed to the user. If there are many validations to be performed and many messages to display to the user, this can lead to bloat in the Terraform state file.

Support something like this:

resource "validation_errors" "errors" {
  error {
    condition = true
    summary = "Summary portion" 
    details = "Details go here"
  }

  error {
    condition = true
    summary = "Another summary portion" 
    details = "Details go here again"
  }
}

The same should be true for warnings.

๐ŸŽ‰ This issue has been resolved in version 1.1.0 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€