1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

example & example validation cleanup

This commit is contained in:
checktheroads
2020-03-21 15:00:37 -07:00
parent 4b5e37986d
commit cf6958e469
6 changed files with 89 additions and 52 deletions

View File

@@ -204,6 +204,7 @@ class DnsOverHttps(HyperglassLevel3):
"""Validation model for DNS over HTTPS resolution."""
name: constr(regex="|".join(DNS_OVER_HTTPS.keys())) = "cloudflare"
url: StrictStr = ""
@root_validator
def validate_dns(cls, values):