foojayio / discoapi

The foojay discovery api (discoapi) is made to discover java packages (jre/jdk) from different distributions.
GNU General Public License v2.0
114 stars 14 forks source link

`major_versions` endpoint doesn't include latest EA version #103

Open creiterer opened 3 months ago

creiterer commented 3 months ago

If I query the major versions via https://api.foojay.io/disco/v3.0/major_versions the latest version is major version 23

    {
      "major_version":23,
      "term_of_support":"STS",
      "maintained":true,
      "early_access_only":true,
      "release_status":"ea",
      "versions": [  ]
    }

although there are already EA builds for OpenJDK JDK 24.

Querying the available versions for OpenJDK via https://api.foojay.io/disco/v3.0/distributions/oracle_openjdk already contains version 24:

  "name":"Oracle OpenJDK",
  "api_parameter":"oracle_open_jdk",
  "maintained":true,
  "available":true,
  "build_of_openjdk":true,
  "build_of_graalvm":false,
  "official_uri":"https://openjdk.org/",
  "versions": [
    "24-ea+5",
    "24-ea+4",
    "24-ea+3",
    "24-ea+2",
    "24-ea+1",
    "23-ea+29",
    "23-ea+28",
    "23-ea+27",
    ...

Explicitly querying the latest EA version via https://api.foojay.io/disco/v3.0/major_versions/latest_ea also seems to not work properly because it returns an empty result:

{
  "result":[

  ],
  "message":""
}