diff --git a/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaCompletionContributor.java b/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaCompletionContributor.java index cba9dbb37ba0..52d349df3a0e 100644 --- a/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaCompletionContributor.java +++ b/json/src/com/jetbrains/jsonSchema/impl/JsonSchemaCompletionContributor.java @@ -308,6 +308,12 @@ public class JsonSchemaCompletionContributor extends CompletionContributor { if (!StringUtil.isEmptyOrSpaces(typeText)) { builder = builder.withTypeText(StringUtil.removeHtmlTags(typeText), true); } + else { + JsonSchemaType type = jsonSchemaObject.getType(); + if (type != null) { + builder = builder.withTypeText(type.getDescription(), true); + } + } builder = builder.withIcon(getIcon(jsonSchemaObject.getType()));