Skip to content

Commit

Permalink
feature: adding OpenAPI support for multiple examples in the REST Lis…
Browse files Browse the repository at this point in the history
…tener.
  • Loading branch information
lorenzo committed Aug 24, 2020
1 parent 2e1701b commit 9ca9a79
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class ListDescriptor extends CollectionAwareDescriptor {

private PropertyTypeDescriptor valueType;
private String listDisplayProperty;
private String hintBrowseFile;

@Override
public Class<?> getType() {
Expand All @@ -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{" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResourceBinary> {
Expand All @@ -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<DynamicResource> {
Expand Down

0 comments on commit 9ca9a79

Please sign in to comment.