[tutorial v1.1_150] A variable with custom validation
This commit is contained in:
parent
87c48328c4
commit
996b2cb280
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ dns_over_https: # DNS over HTTPS
|
|||
custom_dns_url:
|
||||
description: Custom DNS URL
|
||||
type: web_address
|
||||
validators:
|
||||
- jinja: |-
|
||||
{{ _.custom_dns_url.startswith("http://") }}
|
||||
return_type: boolean
|
||||
description: must starts with 'https://' only
|
||||
disabled:
|
||||
jinja: |-
|
||||
{{ _.provider is propertyerror or _.provider != 'Custom' }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue