From 22a46ec5c8365d8c0d290a8776edae8d94276010 Mon Sep 17 00:00:00 2001
From: Sander Schaminee
Date: Sat, 27 Feb 2021 13:24:37 +0100
Subject: [PATCH] Match new queryable model from commit e0003b06 (#652)
---
pygeoapi/templates/collections/queryables.html | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/pygeoapi/templates/collections/queryables.html b/pygeoapi/templates/collections/queryables.html
index 3690bf0..d95b0e7 100644
--- a/pygeoapi/templates/collections/queryables.html
+++ b/pygeoapi/templates/collections/queryables.html
@@ -16,8 +16,16 @@
Queryables
- {% for queryable in data['queryables'] %}
- - {{ queryable['queryable'] }} (
{{ queryable['type'] }})
+ {% for qname, qinfo in data['properties'].items() %}
+ - {{ qname }} (
{{ qinfo['type'] }})
+ {% if 'enum' in qinfo %}
+
+ {% for value in qinfo['enum'] %}
+ - {{ value }}
+ {% endfor %}
+
+ {% endif %}
+
{% endfor %}