this is wrong.
It would mean that my request to fetch notifications would look like this:
https://api.modrinth.com/v2/notifications?ids=vNcGR3Fd&ids=EBqEP7Kk
This does not work and returns this response:
{
"error": "invalid_input",
"description": "Error while validating input: Query deserialize error: duplicate field `ids`"
}
This PR changes the schema for the notification IDs to string.
It is actually a string, written like an array in json.
The schema for the notification IDs in
/notifications
is currently defined as:this is wrong. It would mean that my request to fetch notifications would look like this:
https://api.modrinth.com/v2/notifications?ids=vNcGR3Fd&ids=EBqEP7Kk
This does not work and returns this response:This PR changes the schema for the notification IDs to string. It is actually a string, written like an array in json.
New
And the request will look like this:
https://api.modrinth.com/v2/notifications?ids=["vNcGR3Fd", "EBqEP7Kk"]
Related to: