jikan-me / jikan-rest

The REST API for Jikan
https://docs.api.jikan.moe/
MIT License
413 stars 268 forks source link

Fix Userlists: Don't overwrite page parameter #453

Closed Vernoxvernax closed 8 months ago

Vernoxvernax commented 8 months ago

This pull-request depends on #452.

The array from line 20 specifically excludes page among other keys. Additionally, the constructor of both UserAnimeListRequest and UserMangaListRequest already specify optional values for page. In the return line, the correct page key has previously been overwritten using the values from the values array, or at least that's what I think. It works for me, but please test before merging.