itzg / docker-minecraft-server

Docker image that provides a Minecraft Server that will automatically download selected version at startup

Home Page:https://docker-minecraft-server.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modrinth: support projects that declare "unknown" as server-type

itzg opened this issue · comments

Until modrinth/labrinth#879 is resolved, there are projects like https://api.modrinth.com/v2/project/dynmap that report a server_side of "unknown" even though that is not a documented enum value in the project model: https://docs.modrinth.com/#tag/misc/operation/statistics

Reported in Discord

[mc-image-helper] 21:31:57.397 ERROR : 'modrinth' command failed. Version is 1.37.3
me.itzg.helpers.errors.GenericException: Failed to parse response body into list of class me.itzg.helpers.modrinth.model.Project: Cannot deserialize value of type `me.itzg.helpers.modrinth.model.ServerSide` from String "unknown": not one of the values accepted for Enum class: [optional, unsupported, required]