Possible to configure a conditional must_exist
validator?
#803
Replies: 1 comment 1 reply
-
Validator(
"username",
"password",
must_exist=True,
when=Validator(
"login_to_account", must_exist=True,
),
), |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jtpavlock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to create a configuration validator that would require the presence of an option if another option is present?
For example, say I have the following config options:
I'd like to require the username and password to be present only if
login_to_account
is true.Beta Was this translation helpful? Give feedback.
All reactions