You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated function for evolution_chain::get_all_entries expects to get a list of NamedApiResource<EvolutionChain>, but PokeAPI doesn't give a name for evolution chains:
Hello @AnActualEmerald ! Thanks for using rustemon and for reaching out ! Good catch !
I reproduced the error. I also looked at PokeAPI docs and the evolution_chain::get_all_entries function do respect the specs under Resource Lists/Pagination at https://pokeapi.co/docs/v2.
So if I'm not missing something here, it looks like there a delta between PokeAPI format and the actual data send.
I think PokeAPI should resolve this first and then rustemon should be modified if needed.
Do you want to handle this or you rather prefer me to contact them ?
Please let me know
I opened an issue there as well, PokeAPI/pokeapi#1063. I have a fix in my fork that adds a branch to the endpoint macro for unnamed resources, assuming that his is intentional just not documented, AnActualEmerald@876859c. Depending on what pokeapi's response is there may be other endpoints that would affected by this too.
The generated function for
evolution_chain::get_all_entries
expects to get a list ofNamedApiResource<EvolutionChain>
, but PokeAPI doesn't give a name for evolution chains:outputs
Which causes reqwest to return a decode error for the missing
name
fieldThe text was updated successfully, but these errors were encountered: