From f0877b95a7bb4007c6dd4a6a630299c128576be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20M=C3=A9ndez?= Date: Fri, 25 Sep 2020 14:28:19 +0200 Subject: [PATCH] fix: bug in array items (#76) --- partials/schema-prop.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/schema-prop.html b/partials/schema-prop.html index 00d512b24..9ba2b24d7 100644 --- a/partials/schema-prop.html +++ b/partials/schema-prop.html @@ -148,7 +148,7 @@ {% endif %} {% if prop.type() === 'array' %} - {% set arrayItemsProps = prop.items().properties() %} + {% set arrayItemsProps = (prop.items().properties() if prop.items() else null) %} {% if prop.items() and not arrayItemsProps %}

Items:

{% if prop.items() | isArray %}