Skip to content

Commit

Permalink
type must not be uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jun 28, 2024
1 parent 306133b commit 3ad7371
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import eu.europeana.set.definitions.model.agent.impl.Person;
import eu.europeana.set.definitions.model.vocabulary.AgentTypes;
import eu.europeana.set.definitions.model.vocabulary.WebUserSetModelFields;

@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
Expand All @@ -12,10 +13,9 @@ public WebUser() {
super();
}

@Override
@JsonProperty(WebUserSetModelFields.TYPE)
public String getType() {
return super.getType();
public String getWebType() {
return AgentTypes.PERSON.getJsonValue();
}

@Override
Expand Down

0 comments on commit 3ad7371

Please sign in to comment.