Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atlas/configuration/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class CouchesSigConfig(Schema):

@validates_schema
def layer_required_for_wms_type(self, data, **kwargs):
if data["type"] == "wms" and (not data.get("options").get("layers") or not data.get("options").get("wms_version")):
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")):
raise ValidationError("'layers' and 'wms_version' are required for type 'wms'")


Expand Down
Loading