Skip to content

Commit 2c5b4f7

Browse files
committed
- Remove env var validation rule for private + default
1 parent 9b55da5 commit 2c5b4f7

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

lib/bashly/config_validator.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ def assert_env_var(key, value)
131131
assert_optional_string "#{key}.default", value['default']
132132
assert_boolean "#{key}.required", value['required']
133133
assert_boolean "#{key}.private", value['private']
134-
135-
if value['private']
136-
assert value['default'], "#{key}.private makes no sense without default"
137-
end
138134
end
139135

140136
def assert_command(key, value)

spec/approvals/validations/env_var_private_without_default

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/fixtures/script/validations.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,6 @@
147147
default: development
148148
private: 1
149149

150-
:env_var_private_without_default:
151-
name: invalid
152-
help: env_var.private makes no sense without default
153-
environment_variables:
154-
- name: server_env
155-
private: true
156-
157150
:flag_long:
158151
name: invalid
159152
help: the long flag is not in the form of --force

0 commit comments

Comments
 (0)