[tutorial v1.1_140] A variable with custom validation

This commit is contained in:
egarette@silique.fr 2026-03-09 07:58:55 +01:00
parent 7bb34c9c8f
commit a49a535e3e

View file

@ -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' }}