Skip to content

Commit

Permalink
Fix duplicated type property
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
duncte123 committed Mar 11, 2024
1 parent f550ca9 commit 5a35429
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocol/src/main/java/me/duncte123/lyrics/model/Lyrics.java
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 5a35429

Please sign in to comment.