From 5a3542903e3da7b029ee31222f307476655f17f8 Mon Sep 17 00:00:00 2001 From: duncte123 Date: Mon, 11 Mar 2024 08:01:02 +0100 Subject: [PATCH] Fix duplicated type property Fixes #4 --- protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java b/protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java index df0be64..562d617 100644 --- a/protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java +++ b/protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java @@ -1,9 +1,8 @@ package me.duncte123.lyrics.model; import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -@JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="type") +// @JsonTypeInfo(use=JsonTypeInfo.Id.NAME, include=JsonTypeInfo.As.PROPERTY, property="type") @JsonSubTypes({ @JsonSubTypes.Type(name="text", value=TextLyrics.class), @JsonSubTypes.Type(name="timed", value=TimedLyrics.class)