From 046ea544bfac67a76e61f190e9b6f899924210fc Mon Sep 17 00:00:00 2001 From: Florian Friedrich Date: Tue, 8 Dec 2020 19:48:25 +0100 Subject: [PATCH] Remove count usage for now due to https://github.com/vapor/leaf-kit/issues/85 --- Sources/RouteDocs/DefaultDocsView/doc_documentation.leaf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/RouteDocs/DefaultDocsView/doc_documentation.leaf b/Sources/RouteDocs/DefaultDocsView/doc_documentation.leaf index 8941a75..7c69db3 100644 --- a/Sources/RouteDocs/DefaultDocsView/doc_documentation.leaf +++ b/Sources/RouteDocs/DefaultDocsView/doc_documentation.leaf @@ -9,8 +9,10 @@
#if(!doc.query || doc.query.body.isEmpty): - #if(!doc.request || count(doc.request.objects) <= 0): - #if(!doc.response || count(doc.response.objects) <= 0): + #if(!doc.request): + + #if(!doc.response): +

This request has no query or body and returns no response (usually a HTTP 204).