Commit b18c8cf8 authored by Juan Rada's avatar Juan Rada

added changes

parent 014a2e06
Pipeline #73800 passed with stages
in 5 minutes and 12 seconds
......@@ -10,8 +10,6 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
public class File {
private static final String TYPE = "file";
@JsonIgnore
private long id;
......@@ -24,12 +22,12 @@ public class File {
@JsonProperty("size")
private long size;
@JsonProperty("directory")
@JsonIgnore
private boolean directory;
@JsonProperty("type")
public String getType() {
return TYPE;
return directory ? "directory" : "file";
}
@JsonProperty("attributes")
......
......@@ -51,7 +51,6 @@
"name": "02-0168_appT-s1.pdf",
"path": null,
"size": 34984,
"directory": false,
"type": "file"
}
],
......@@ -161,7 +160,6 @@
"path": null,
"name": "NIHMS40251-supplement-1.pdf",
"size": 9170139,
"directory": false,
"attributes": [
{
"name": "Type",
......
......@@ -42,7 +42,6 @@
"path": null,
"name": "NIHMS40251-supplement-1.pdf",
"size": 9170139,
"directory": false,
"attributes": [
{
"name": "Type",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment