Skip to content

Commit

Permalink
docs: generate
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Apr 1, 2024
1 parent 09acccf commit 2f62a32
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
@@ -1,3 +1,13 @@
## 0.1.0 (Unreleased)
## 0.1.2 (April 2, 2024)

FEATURES:
* Documentation updates

## 0.1.1 (April 2, 2024)

* Documentation updates

## 0.1.0 (April 2, 2024)

NOTES:

* initial beta release
2 changes: 1 addition & 1 deletion docs/functions/between.md
Expand Up @@ -29,7 +29,7 @@ run "ebs_volume_size" {
variable "ebs_volume_size" {
type = number
validation {
condition = provider::assert::between(1, 100, aws_ebs_volume.example.size)
condition = provider::assert::between(1, 100, var.ebs_volume_size)
error_message = "EBS volume size must be between 1 and 100 GiB"
}
}
Expand Down
9 changes: 6 additions & 3 deletions docs/functions/null.md
Expand Up @@ -15,10 +15,13 @@ description: |-

```terraform
variable "example" {
type = string
type = object({
name = string
value = optional(string)
})
validation {
condition = provider::assert::null(var.example) || length(var.example_variable) > 0
error_message = "Must either be a non-empty string or null"
condition = provider::assert::null(var.example.value)
error_message = "Value must be null"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -26,7 +26,7 @@ Define the provider as a `required_provider` to use its functions
terraform {
required_providers {
assert = {
source = "bschaatsbergen/assert"
source = "bschaatsbergen/assert"
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions examples/functions/null/variable.tf
@@ -1,7 +1,10 @@
variable "example" {
type = string
type = object({
name = string
value = optional(string)
})
validation {
condition = provider::assert::null(var.example) || length(var.example_variable) > 0
error_message = "Must either be a non-empty string or null"
condition = provider::assert::null(var.example.value)
error_message = "Value must be null"
}
}
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
@@ -1,7 +1,7 @@
terraform {
required_providers {
assert = {
source = "bschaatsbergen/assert"
source = "bschaatsbergen/assert"
}
}
}

0 comments on commit 2f62a32

Please sign in to comment.