mlemesle / rustemon

A wrapper library for PokeApi, written in Rust
MIT License
27 stars 10 forks source link

Pokemon Encounters endpoint gives a map, expects Vec of LocationAreaEncounter #5

Closed SteveCookTU closed 2 years ago

SteveCookTU commented 2 years ago

As mentioned in the title, the type for the encounters endpoint is marked as a Vec but reqwest responds with an indexed json map

SteveCookTU commented 2 years ago

Realized the tool I was using was supplying the indices and the issue was the subtype wasn't being used for the macro. Addressed in #6

mlemesle commented 2 years ago

Hey @SteveCookTU thanks for contributing to this project ! I just merged your branch and will soon make a new release.

If you have any comments regarding this project, feel free to reach out. It will help me improve :)