Skip to content

Commit

Permalink
Fixing nano
Browse files Browse the repository at this point in the history
  • Loading branch information
michmazur committed Mar 29, 2024
1 parent 36eb3a1 commit 1c87033
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/eu/cybershu/pocketstats/reader/api/ReaderItem.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.cybershu.pocketstats.reader.api;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -46,9 +47,12 @@ public record ReaderItem(
//@JsonProperty List<String> tags,
@JsonProperty("site_name") String siteName,
@JsonProperty("word_count") int wordCount,
@JsonProperty Instant created_at,
@JsonProperty Instant updated_at,
@JsonProperty Instant published_date,
@JsonProperty
@JsonFormat(shape = JsonFormat.Shape.NUMBER, without = JsonFormat.Feature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS) Instant created_at,
@JsonProperty
@JsonFormat(shape = JsonFormat.Shape.NUMBER, without = JsonFormat.Feature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS) Instant updated_at,
@JsonProperty
@JsonFormat(shape = JsonFormat.Shape.NUMBER, without = JsonFormat.Feature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS) Instant published_date,
@JsonProperty String notes,
@JsonProperty String summary,
@JsonProperty("image_url") String imageUrl,
Expand Down

0 comments on commit 1c87033

Please sign in to comment.