Skip to content

Commit

Permalink
Merge pull request #157 from GenomicDataInfrastructure/upgrade-to-dca…
Browse files Browse the repository at this point in the history
…textension2.1.0

feat(mapping): Update mapping with missing fields after updating to C…
  • Loading branch information
brunopacheco1 authored Nov 20, 2024
2 parents f634153 + 6503b68 commit 4d91c1f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public Agent agent(CkanAgent agent) {
.name(agent.getName())
.email(agent.getEmail())
.url(agent.getUrl())
.uri(agent.getUri())
.type(agent.getType())
.identifier(agent.getIdentifier())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private ContactPoint contactPointEntry(CkanContactPoint value) {
.name(value.getName())
.email(value.getEmail())
.uri(value.getUri())
.identifier(value.getIdentifier())
.build();
}

Expand Down Expand Up @@ -134,6 +135,7 @@ private Agent agent(CkanAgent value) {
.type(value.getType())
.identifier(value.getIdentifier())
.url(value.getUrl())
.uri(value.getUri())
.build())
.orElse(null);
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/openapi/ckan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ components:
uri:
type: string
title: uri
identifier:
type: string
title: identifier
required:
- name
- email
Expand All @@ -276,6 +279,9 @@ components:
url:
type: string
title: url
uri:
type: string
title: uri
type:
type: string
title: type
Expand Down
6 changes: 6 additions & 0 deletions src/main/openapi/discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ components:
uri:
type: string
title: uri
identifier:
type: string
title: identifier
required:
- name
- email
Expand All @@ -493,6 +496,9 @@ components:
identifier:
type: string
title: identifier
uri:
type: string
title: uri
required:
- name
DatasetRelationEntry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ void can_parse() {
CkanContactPoint.builder()
.name("Contact 1")
.email("[email protected]")
.identifier("contact-identifier-1")
.build(),
CkanContactPoint.builder()
.name("Contact 2")
.email("[email protected]")
.uri("http://example.com")
.identifier("contact-identifier-2")
.build()
))
.creator(List.of(
Expand All @@ -120,13 +122,15 @@ void can_parse() {
.email("email")
.url("url")
.type("type")
.uri("uri")
.build(),
CkanAgent.builder()
.name("creatorName2")
.identifier("creatorIdentifier2")
.email("email2")
.url("url2")
.type("type2")
.uri("uri2")
.build()
))
.publisher(List.of(
Expand All @@ -136,13 +140,15 @@ void can_parse() {
.email("email")
.url("url")
.type("type")
.uri("uri")
.build(),
CkanAgent.builder()
.name("publisherName2")
.identifier("publisherIdentifier2")
.email("email2")
.url("url2")
.type("type2")
.uri("uri2")
.build()
))
.datasetRelationships(List.of(
Expand Down Expand Up @@ -190,13 +196,15 @@ void can_parse() {
.email("email")
.url("url")
.type("type")
.uri("uri")
.build(),
Agent.builder()
.name("creatorName2")
.identifier("creatorIdentifier2")
.email("email2")
.url("url2")
.type("type2")
.uri("uri2")
.build()
))
.publishers(List.of(
Expand All @@ -206,13 +214,15 @@ void can_parse() {
.email("email")
.url("url")
.type("type")
.uri("uri")
.build(),
Agent.builder()
.name("publisherName2")
.identifier("publisherIdentifier2")
.email("email2")
.url("url2")
.type("type2")
.uri("uri2")
.build()
))
.accessRights(ValueLabel.builder()
Expand Down Expand Up @@ -256,11 +266,13 @@ void can_parse() {
ContactPoint.builder()
.name("Contact 1")
.email("[email protected]")
.identifier("contact-identifier-1")
.build(),
ContactPoint.builder()
.name("Contact 2")
.email("[email protected]")
.uri("http://example.com")
.identifier("contact-identifier-2")
.build()
))
.datasetRelationships(List.of(
Expand Down

0 comments on commit 4d91c1f

Please sign in to comment.