mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix(api): match UserDto with expected schema
the expected schema for `UserDto` is that `ageRestriction` is either the age restriction object or is omitted. this change ensures that the DTO will drop the age restriction value instead of serializing it as `null`
This commit is contained in:
parent
4a7d9a6510
commit
36b773ae43
1 changed files with 2 additions and 0 deletions
|
|
@ -1,10 +1,12 @@
|
|||
package org.gotson.komga.interfaces.api.rest.dto
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude
|
||||
import org.gotson.komga.domain.model.AgeRestriction
|
||||
import org.gotson.komga.domain.model.AllowExclude
|
||||
import org.gotson.komga.domain.model.KomgaUser
|
||||
import org.gotson.komga.infrastructure.security.KomgaPrincipal
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
data class UserDto(
|
||||
val id: String,
|
||||
val email: String,
|
||||
|
|
|
|||
Loading…
Reference in a new issue