From b5a98a7d0a30c601258bc1f65d1271bf4c604e83 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 9 Oct 2024 08:56:11 +0200 Subject: [PATCH] User dateOfBirth is int in Swagger interface --- myconext-server/src/main/java/myconext/model/User.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/myconext-server/src/main/java/myconext/model/User.java b/myconext-server/src/main/java/myconext/model/User.java index 3cc84bdc..913b877d 100644 --- a/myconext-server/src/main/java/myconext/model/User.java +++ b/myconext-server/src/main/java/myconext/model/User.java @@ -3,6 +3,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.yubico.webauthn.data.ByteArray; import com.yubico.webauthn.data.PublicKeyCredentialDescriptor; +import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @@ -46,6 +47,7 @@ public class User implements Serializable, UserDetails { @Setter private String familyName; @Setter + @Schema(type = "integer", format = "int64", example = "1634813554997") private Date dateOfBirth; @Indexed private String uid;