trevjones01/20/2023, 12:20 AM
context: github has json that is inconsistent between different types of webhook payloads. accident of history i suspect.
@JsonQualifier annotation class WithFallback( vararg val qualifiers: Annotation )
Ideally it would looks something like this in usage.
"created_at": 1459436810 "created_at": "2023-01-12T22:40:19Z"
@WithFallback(qualifiers = [ISOZonedDateTime(), EpochMillis()]) val created_at: ZonedDateTime,
@WithFallback @ISOZonedDateTime @EpochMillis val created_at: ZonedDateTime,