Skip to content

Quick fix for the new API rule for \all route #110

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adosari
Copy link

@adosari adosari commented Jun 12, 2025

The API provider recently enforced adding fields to the \all endpoint. This PR fixes the issue by adding the necessary fields to the all countries endpoint.

In addition, the endpoint \name does not always return the borders for the country which causes the country view to break in the app - I don't know if this is new or not. The PR addresses this issue by making the relevant types optional.

adosari added 2 commits June 12, 2025 11:37
The API provider is now requiring requests for this endpoint to specify
upto 10 fields
(https://gitlab.com/restcountries/restcountries/-/issues/265)
The type of the borders array returned by the API is optional
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