Skip to content

Commit

Permalink
Relaxed certificates models JSON schema (eu-digital-green-certificate…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrsarapulovgl authored Sep 28, 2021
1 parent 9440e50 commit c801d01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@

package dgca.verifier.app.decoder.model

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import java.io.Serializable
import java.time.*

@JsonIgnoreProperties(ignoreUnknown = true)
data class RecoveryStatement(

@JsonProperty("tg")
Expand Down
2 changes: 2 additions & 0 deletions decoder/src/main/java/dgca/verifier/app/decoder/model/Test.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@

package dgca.verifier.app.decoder.model

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import java.io.Serializable
import java.time.OffsetDateTime
import java.time.ZoneOffset
import java.time.format.DateTimeFormatter

@JsonIgnoreProperties(ignoreUnknown = true)
data class Test(

@JsonProperty("tg")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@

package dgca.verifier.app.decoder.model

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import org.joda.time.DateTime
import java.io.Serializable
import java.time.OffsetDateTime

@JsonIgnoreProperties(ignoreUnknown = true)
data class Vaccination(

@JsonProperty("tg")
Expand Down Expand Up @@ -57,7 +59,7 @@ data class Vaccination(
val certificateIssuer: String,

@JsonProperty("ci")
val certificateIdentifier: String
val certificateIdentifier: String,

) : Serializable {

Expand Down

0 comments on commit c801d01

Please sign in to comment.