Skip to content

Commit

Permalink
Minor fix to input validation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ribejara-te authored Jan 29, 2025
1 parent ac39b57 commit 4fcec50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3.2.3. Input validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ We can use this for input validation, for example.

```hcl
# stacks/owners.tf
{% if 'owner' in var %}{{ throw('var.owner is not defined') }}{% endif %}
{% if 'owner' not in var %}{{ throw('var.owner is not defined') }}{% endif %}
{% if var.owner not in var.owners %}{{ throw('var.owner not in var.owners') }}{% endif %}
```

Expand Down

0 comments on commit 4fcec50

Please sign in to comment.