From 9ca9a79b369c4f92f4bb395a3f168c9d90875ac2 Mon Sep 17 00:00:00 2001 From: lorenzo Date: Mon, 24 Aug 2020 17:58:04 +0200 Subject: [PATCH] feature: adding OpenAPI support for multiple examples in the REST Listener. --- .../descriptor/model/property/ListDescriptor.java | 9 --------- .../converter/DeserializerConverterDefault.java | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/module-descriptor/src/main/java/com/reedelk/module/descriptor/model/property/ListDescriptor.java b/module-descriptor/src/main/java/com/reedelk/module/descriptor/model/property/ListDescriptor.java index 15a837e4..8543bbc3 100644 --- a/module-descriptor/src/main/java/com/reedelk/module/descriptor/model/property/ListDescriptor.java +++ b/module-descriptor/src/main/java/com/reedelk/module/descriptor/model/property/ListDescriptor.java @@ -8,7 +8,6 @@ public class ListDescriptor extends CollectionAwareDescriptor { private PropertyTypeDescriptor valueType; private String listDisplayProperty; - private String hintBrowseFile; @Override public Class getType() { @@ -31,14 +30,6 @@ public void setListDisplayProperty(String listDisplayProperty) { this.listDisplayProperty = listDisplayProperty; } - public String getHintBrowseFile() { - return hintBrowseFile; - } - - public void setHintBrowseFile(String hintBrowseFile) { - this.hintBrowseFile = hintBrowseFile; - } - @Override public String toString() { return "ListDescriptor{" + diff --git a/runtime-commons/src/main/java/com/reedelk/runtime/converter/DeserializerConverterDefault.java b/runtime-commons/src/main/java/com/reedelk/runtime/converter/DeserializerConverterDefault.java index 66473da9..ba38ab28 100644 --- a/runtime-commons/src/main/java/com/reedelk/runtime/converter/DeserializerConverterDefault.java +++ b/runtime-commons/src/main/java/com/reedelk/runtime/converter/DeserializerConverterDefault.java @@ -420,12 +420,6 @@ public ResourceText convert(JSONObject object, String key, DeserializerConverter String value = JsonObjectConverter.getInstance().convert(String.class, object, key); return ResourceText.from(value); } - - @Override - public ResourceText convert(JSONArray array, int index, DeserializerConverterContext context) { - String value = JsonObjectConverter.getInstance().convert(String.class, array, index); - return ResourceText.from(value); - } } private static class AsResourceBinary implements Converter { @@ -434,12 +428,6 @@ public ResourceBinary convert(JSONObject object, String key, DeserializerConvert String value = JsonObjectConverter.getInstance().convert(String.class, object, key); return ResourceBinary.from(value); } - - @Override - public ResourceBinary convert(JSONArray array, int index, DeserializerConverterContext context) { - String value = JsonObjectConverter.getInstance().convert(String.class, array, index); - return ResourceBinary.from(value); - } } private static class AsDynamicResource implements Converter {