From 23e7847a670d3ccb35d68941d5d9e380329986c5 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 15 Feb 2017 16:00:39 +0200 Subject: [PATCH] fix: use items description if not present on top level fixes: #206 --- lib/services/schema-helper.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/schema-helper.service.ts b/lib/services/schema-helper.service.ts index 613b85f3a5..fa6fd025eb 100644 --- a/lib/services/schema-helper.service.ts +++ b/lib/services/schema-helper.service.ts @@ -64,6 +64,7 @@ const injectors = { } else { injectors.object.inject(injectTo, propertySchema.items); } + if (!injectTo.description) injectTo.description = propertySchema.items.description; injectTo._widgetType = 'array'; } },