Skip to content

Commit

Permalink
fix: add reflection to Ipernity entities
Browse files Browse the repository at this point in the history
  • Loading branch information
astappiev committed Sep 27, 2023
1 parent 3c5db49 commit 7db9ebc
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Api(
@JsonProperty("at")
String at,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Count(
@JsonProperty("visits")
Long visits,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Dates(
@JsonProperty("created")
String created,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Doc(
@JsonProperty("doc_id")
String docId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import java.util.List;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Docs(
@JsonProperty("pages")
String pages,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record GetResponse(

@JsonProperty("doc")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Owner(
@JsonProperty("user_id")
String userId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record SearchResponse(
@JsonProperty("docs")
Docs docs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Tag(

@JsonProperty("added_at")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package de.l3s.interweb.connector.ipernity.entity;

import java.util.List;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Tags(

@JsonProperty("total")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.l3s.interweb.connector.ipernity.entity;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Thumb(
@JsonProperty("ext")
String ext,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package de.l3s.interweb.connector.ipernity.entity;

import java.util.List;

import io.quarkus.runtime.annotations.RegisterForReflection;

import com.fasterxml.jackson.annotation.JsonProperty;

@RegisterForReflection
public record Thumbs(

@JsonProperty("thumb")
Expand Down

0 comments on commit 7db9ebc

Please sign in to comment.