Skip to content

Commit 232685f

Browse files
committed
Fix check layer_required_for_wms_type
1 parent 536f9e9 commit 232685f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlas/configuration/config_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class CouchesSigConfig(Schema):
139139

140140
@validates_schema
141141
def layer_required_for_wms_type(self, data, **kwargs):
142-
if data["type"] == "wms" and (not data.get("options").get("layers") or not data.get("options").get("wms_version")):
142+
if data["type"] == "wms" and ((not data.get("options").get("layers") and not data.get("options").get("layers") == 0) or not data.get("options").get("wms_version")):
143143
raise ValidationError("'layers' and 'wms_version' are required for type 'wms'")
144144

145145

0 commit comments

Comments
 (0)