Skip to content

Commit

Permalink
[Mediaserver/Emby] Add classes to known reflection to ensure JSON bod…
Browse files Browse the repository at this point in the history
…y gets rendered correctly in native image
  • Loading branch information
Schaka committed Aug 28, 2024
1 parent 248759d commit 375cf2a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import com.github.schaka.janitorr.mediaserver.emby.Emby
import com.github.schaka.janitorr.mediaserver.emby.EmbyMediaServerClient
import com.github.schaka.janitorr.mediaserver.emby.EmbyProperties
import com.github.schaka.janitorr.mediaserver.emby.EmbyRestService
import com.github.schaka.janitorr.mediaserver.emby.library.AddMediaPathRequest
import com.github.schaka.janitorr.mediaserver.emby.library.AddVirtualFolder
import com.github.schaka.janitorr.mediaserver.jellyfin.Jellyfin
import com.github.schaka.janitorr.mediaserver.jellyfin.JellyfinProperties
import com.github.schaka.janitorr.mediaserver.jellyfin.JellyfinRestService
Expand All @@ -22,7 +24,10 @@ import org.springframework.context.annotation.Configuration
/**
* Only required for native image
*/
@RegisterReflectionForBinding(classes = [ItemPage::class, MediaFolderItem::class, LibraryContent::class, VirtualFolderResponse::class, ProviderIds::class, UserData::class, CollectionResponse::class])
@RegisterReflectionForBinding(classes = [ItemPage::class, MediaFolderItem::class, LibraryContent::class,
VirtualFolderResponse::class, ProviderIds::class, UserData::class, CollectionResponse::class,
AddVirtualFolder::class, AddPathRequest::class, AddMediaPathRequest::class,
])
@Configuration(proxyBeanMethods = false)
class MediaServerConfig(
@Emby val embyClient: EmbyMediaServerClient,
Expand Down

0 comments on commit 375cf2a

Please sign in to comment.