Skip to content

Commit

Permalink
Merge pull request #29 from RamtinS/bugfix/add-tags-to-quiz-creation-…
Browse files Browse the repository at this point in the history
…requests

Set json typename for TagDto
  • Loading branch information
Skippyoftedal authored Apr 4, 2024
2 parents b5ae6ff + 86609ed commit c42f44e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/edu/ntnu/idatt2105/quizapp/dto/quiz/TagDto.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package edu.ntnu.idatt2105.quizapp.dto.quiz;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand All @@ -13,10 +14,7 @@
* @version 1.0
* @since 2024-03-30
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
property = "type"
)
@JsonTypeName("TagDTO")
@Data
@Builder
@AllArgsConstructor
Expand Down

0 comments on commit c42f44e

Please sign in to comment.