diff --git a/jsonschema/_format.py b/jsonschema/_format.py index f9f82bbe..25d4caa7 100644 --- a/jsonschema/_format.py +++ b/jsonschema/_format.py @@ -274,7 +274,7 @@ def is_ipv6(instance: object) -> bool: def is_host_name(instance: object) -> bool: if not isinstance(instance, str): return True - return FQDN(instance).is_valid + return FQDN(instance, min_labels=1).is_valid with suppress(ImportError):