diff --git a/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml b/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml index 4feee3a..154940a 100644 --- a/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml +++ b/src/main/resources/zenodo-1.0.0-swagger-2.0.yaml @@ -1019,6 +1019,12 @@ definitions: properties: id: type: integer + created: + type: string + format: date-time + modified: + type: string + format: date-time doi: type: string doi_url: diff --git a/src/test/java/io/dockstore/ZenodoClientTest.java b/src/test/java/io/dockstore/ZenodoClientTest.java index 3c801c0..8d43c8e 100644 --- a/src/test/java/io/dockstore/ZenodoClientTest.java +++ b/src/test/java/io/dockstore/ZenodoClientTest.java @@ -35,5 +35,7 @@ public void testZenodoClient() throws ApiException { void testConceptDoi() { final SearchResult searchResult = previewApi.listRecords(null, "bestmatch", 1, 100); assertNotNull(searchResult.getHits().getHits().get(0).getConceptdoi()); + assertNotNull(searchResult.getHits().getHits().get(0).getCreated()); + assertNotNull(searchResult.getHits().getHits().get(0).getModified()); } } \ No newline at end of file