From af0506d1cd67eb61f6d6adc6cb5382a1bf42db66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dion=20H=C3=A4fner?= Date: Mon, 15 May 2023 10:14:26 +0200 Subject: [PATCH] fix explicit cmap example in apidoc (#306) --- terracotta/server/singleband.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terracotta/server/singleband.py b/terracotta/server/singleband.py index ca62470b..1aeb5670 100644 --- a/terracotta/server/singleband.py +++ b/terracotta/server/singleband.py @@ -52,7 +52,7 @@ class Meta: explicit_color_map = fields.Dict( keys=fields.Number(), values=fields.List(fields.Number, validate=validate.Length(min=3, max=4)), - example="{0: (255, 255, 255)}", + example='{"0": [255, 255, 255]}', description="Explicit value-color mapping to use, encoded as JSON object. " "Must be given together with `colormap=explicit`. Color values can be " "specified either as RGB or RGBA tuple (in the range of [0, 255]), or as "