Skip to content

Commit

Permalink
Legg til jsonProperty på Enum. Aareg gir enum i små bokstaver
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbm committed Jan 21, 2025
1 parent c3c8969 commit 067f33f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package no.nav.familie.inntektsmelding.integrasjoner.aareg.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

public record OpplysningspliktigArbeidsgiverDto(Type type, String organisasjonsnummer, String aktoerId, String offentligIdent) {

@Override
Expand All @@ -9,7 +11,9 @@ public String toString() {
}

public enum Type {
@JsonProperty("Organisasjon")
ORGANISASJON,
@JsonProperty("Person")
PERSON
}
}

0 comments on commit 067f33f

Please sign in to comment.