We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536f9e9 commit 232685fCopy full SHA for 232685f
atlas/configuration/config_schema.py
@@ -139,7 +139,7 @@ class CouchesSigConfig(Schema):
139
140
@validates_schema
141
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")):
+ 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")):
143
raise ValidationError("'layers' and 'wms_version' are required for type 'wms'")
144
145
0 commit comments