Skip to content

Commit 09b106e

Browse files
author
Mark Robinson
committed
Parse input array types properly
Closes #23
1 parent 2779053 commit 09b106e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/commonwl/viewer/domain/CWLCollection.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ private String extractTypes(JsonNode typeNode) {
320320

321321
// Set the type to the constructed string
322322
return typeDetails.toString();
323+
324+
} else if (typeNode.getClass() == ObjectNode.class) {
325+
// Type: array and items:
326+
if (typeNode.has("items")) {
327+
return typeNode.get("items").asText() + "[]";
328+
}
323329
}
324330
}
325331
return null;

0 commit comments

Comments
 (0)