-
Notifications
You must be signed in to change notification settings - Fork 9
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
Can't get all evolution chains due to missing field #27
Comments
Hello @AnActualEmerald ! Thanks for using I reproduced the error. I also looked at PokeAPI docs and the 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 Do you want to handle this or you rather prefer me to contact them ? |
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. |
I agree! In the meantime, thanks again for your work and patience! |
@AnActualEmerald Hey there ! Is it still an issue ? |
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: