Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itzg opened this issue Jun 26, 2024 · 0 comments
Open

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

itzg opened this issue Jun 26, 2024 · 0 comments

Comments

@itzg
Copy link
Owner

itzg commented Jun 26, 2024

Until modrinth/code#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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant