From dface10ca7474bfe6c73a85f2e0dcf42672367de Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 7 Nov 2025 06:37:47 +0100 Subject: [PATCH] [tutorial 083] A variable with custom validation --- firefox/60-dns_over_https.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firefox/60-dns_over_https.yml b/firefox/60-dns_over_https.yml index 6ce2c7ef..3a57e006 100644 --- a/firefox/60-dns_over_https.yml +++ b/firefox/60-dns_over_https.yml @@ -20,6 +20,12 @@ dns_over_https: # DNS over HTTPS custom_dns_url: description: Custom DNS URL type: web_address + validators: + - jinja: |- + {% if dns_over_https.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' %}