From ab807f1bf7b5bf16440fa3d791c058d1d0841a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojtek=20Ba=C5=BCant?= Date: Tue, 17 Sep 2019 20:55:37 +0100 Subject: [PATCH] Add tags to Yancy schema Also datetime -> date, which the UI renders as a nice calendar Needs https://github.com/preaction/Yancy/pull/72 --- lib/Statocles.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Statocles.pm b/lib/Statocles.pm index aa22f17a..eac1338b 100644 --- a/lib/Statocles.pm +++ b/lib/Statocles.pm @@ -221,13 +221,15 @@ sub startup { }, date => { type => [ 'string', 'null' ], - format => 'datetime', + format => 'date', }, - data => { + tags => { + type => 'array', + items => { + type => 'string' + }, }, # XXX Add other fields - # tags - # - Array of strings or comma-separated strings # search_change_frequency # - always hourly daily weekly monthly yearly never # search_priority