fix: #191 Documentのnameがnullのとき空文字になるように

This commit is contained in:
usbharu 2023-12-06 18:23:56 +09:00
parent 73e04bdd8a
commit b3bbefb543
1 changed files with 3 additions and 0 deletions

View File

@ -1,9 +1,12 @@
package dev.usbharu.hideout.activitypub.domain.model
import com.fasterxml.jackson.annotation.JsonSetter
import com.fasterxml.jackson.annotation.Nulls
import dev.usbharu.hideout.activitypub.domain.model.objects.Object
open class Document(
type: List<String> = emptyList(),
@JsonSetter(nulls = Nulls.AS_EMPTY)
override val name: String = "",
val mediaType: String,
val url: String