Skip to content

Fix parsing of Lite API response#21

Merged
silvanocerza merged 1 commit intomasterfrom
silvano/eng-532-fix-lite-api-country-data-parsing-in-erlang-library
Nov 17, 2025
Merged

Fix parsing of Lite API response#21
silvanocerza merged 1 commit intomasterfrom
silvano/eng-532-fix-lite-api-country-data-parsing-in-erlang-library

Conversation

@silvanocerza
Copy link
Contributor

The Lite API country data wasn't parsed correctly and we were returning invalid values, like the country flag URL.
This PR fixes it.

I also had to slightly change a test in ipinfo_SUITE.erl because now we correctly create an atom when parsing the Lite API response. Since tests are all compiled together that atom is also available to ipinfo_SUITE.erl tests and when jsx:decode is called with attempt_atom it converts the keys to atom instead of keeping it to binary.

@silvanocerza silvanocerza self-assigned this Nov 17, 2025
@linear
Copy link

linear bot commented Nov 17, 2025

@silvanocerza silvanocerza merged commit d95c097 into master Nov 17, 2025
8 checks passed
@silvanocerza silvanocerza deleted the silvano/eng-532-fix-lite-api-country-data-parsing-in-erlang-library branch November 17, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant