Skip to content

Commit cf5d756

Browse files
avoldsundkristoivgustavli
committed
Spesifiser JsonFormat for datoen
Co-authored-by: kristoiv <[email protected]> Co-authored-by: gustavli <[email protected]>
1 parent a7f2155 commit cf5d756

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/no/nav/hjelpemidler/model/Statusinfo.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package no.nav.hjelpemidler.model
22

3+
import com.fasterxml.jackson.annotation.JsonFormat
34
import com.fasterxml.jackson.annotation.JsonProperty
45
import java.time.LocalDate
56

@@ -19,6 +20,7 @@ data class Statusinfo(
1920
@JsonProperty("IncidentSoknadType")
2021
valknadstype: String,
2122

23+
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
2224
@JsonProperty("IncidentVedtakDato")
2325
val vedtaksdato: LocalDate,
2426

@@ -58,6 +60,7 @@ data class Statusinfo(
5860
@JsonProperty("AccountNumber")
5961
val fnrBruker: String,
6062

63+
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
6164
@JsonProperty("LastUpdateDate")
6265
val sistOppdatert: LocalDate,
6366
)

0 commit comments

Comments
 (0)