mledoze / countries

World countries in JSON, CSV, XML and Yaml. Any help is welcome!

Home Page:https://mledoze.github.io/countries/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Thanks a lot 😊.