Skip to content

Commit 898a4f3

Browse files
authored
Merge pull request #661 from bashly-framework/fix/env-var-validation
Add misisng validation for `env_var.validate`
2 parents a81d906 + 55a3946 commit 898a4f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/bashly/config_validator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ def assert_env_var(key, value)
169169
assert_boolean "#{key}.required", value['required']
170170
assert_boolean "#{key}.private", value['private']
171171
assert_array "#{key}.allowed", value['allowed'], of: :string
172+
assert_optional_string "#{key}.validate", value['validate']
172173

173174
refute value['required'] && value['default'], "#{key} cannot have both nub`required` and nub`default`"
174175
end

0 commit comments

Comments
 (0)