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

This commit is contained in:
egarette@silique.fr 2025-11-14 23:21:41 +01:00
parent a0d9ac87c9
commit 782a21c1d0

View file

@ -20,6 +20,12 @@ dns_over_https: # DNS over HTTPS
custom_dns_url:
description: Custom DNS URL
type: web_address
validators:
- jinja: |-
{% if _.custom_dns_url.startswith('http://') %}
only https is allowed
{% endif %}
description: must starts with 'https://' only
disabled:
jinja: |-
{% if _.provider is propertyerror or _.provider != 'Custom' %}