docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

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

Open itzg opened this issue 1 year ago • 0 comments

Until https://github.com/modrinth/code/issues/2590 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]

itzg avatar Jun 26 '24 23:06 itzg