1
2
3
4
5
6
7
8
9
10
11
12
13 package org.apache.syncope.ext.openfga.client;
14
15 import java.time.Instant;
16 import java.time.OffsetDateTime;
17 import java.time.ZonedDateTime;
18
19 import com.fasterxml.jackson.databind.module.SimpleModule;
20 import com.fasterxml.jackson.databind.Module.SetupContext;
21
22 @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.26.0")
23 public class RFC3339JavaTimeModule extends SimpleModule {
24 private static final long serialVersionUID = 1L;
25
26 public RFC3339JavaTimeModule() {
27 super("RFC3339JavaTimeModule");
28 }
29
30 @Override
31 public void setupModule(SetupContext context) {
32 super.setupModule(context);
33
34 addDeserializer(Instant.class, RFC3339InstantDeserializer.INSTANT);
35 addDeserializer(OffsetDateTime.class, RFC3339InstantDeserializer.OFFSET_DATE_TIME);
36 addDeserializer(ZonedDateTime.class, RFC3339InstantDeserializer.ZONED_DATE_TIME);
37 }
38
39 }