No "native" should be {} instead of [].
fhuonder opened this issue · comments
The native element looks like :
"native": {
"eng": {
"official": "Cook Islands",
"common": "Cook Islands"
},
...
In case a country has no native it currently looks like:
{
"name": {
"common": "Antarctica",
"official": "Antarctica",
"native": []
},
But I think the "no native" should look like:
{
"name": {
"common": "Antarctica",
"official": "Antarctica",
"native": {}
},
The native isn't a list but a map. And an empty map is {}
.
Hello @fhuonder you're right, I'll fix this!
It is fixed on master. I will publish a new release soon.
Do you already have a date when the new release is published?
@fhuonder I will publish a new release today.
@fhuonder here it is: https://github.com/mledoze/countries/releases/tag/v2.1.0
Sorry for the delay.
Thanks a lot 😊.