You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the Doc of the Project Dependencies API, it says pass latest to get dependency info for the latest available version. However, dependency info of the wrong latest version is returned.
Steps
GET https://libraries.io/api/maven/org.assertj:assertj-core/latest/dependencies?api_key=my_key
I run the command curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET "https://libraries.io/api/maven/org.assertj:assertj-core/latest/dependencies?api_key=my_key" to get the dependency informations of the latest version of org.assertj:assertj-core.
Expected Behavior
Return the dependency informations of the version 3.22.0 (latest version) of org.assertj:assertj-core
Observed Behavior
Return the dependency informations of the version 3.9.1 of org.assertj:assertj-core
It looks like libraries.io wrongly takes the last element in the versions array of org.assertj:assertj-core as the latest version. the versions array is sorted in alphabetical order where 3.22.0 is placed before 3.9.1 and 3.9.1 is the last element.
The text was updated successfully, but these errors were encountered:
Description
At the Doc of the Project Dependencies API, it says
pass latest to get dependency info for the latest available version
. However, dependency info of the wrong latest version is returned.Steps
GET https://libraries.io/api/maven/org.assertj:assertj-core/latest/dependencies?api_key=my_key
I run the command
curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET "https://libraries.io/api/maven/org.assertj:assertj-core/latest/dependencies?api_key=my_key"
to get the dependency informations of the latest version oforg.assertj:assertj-core
.Expected Behavior
Return the dependency informations of the version 3.22.0 (latest version) of
org.assertj:assertj-core
Observed Behavior
Return the dependency informations of the version 3.9.1 of
org.assertj:assertj-core
The result is like:
Comments
It looks like libraries.io wrongly takes the last element in the
versions
array oforg.assertj:assertj-core
as the latest version. theversions
array is sorted in alphabetical order where 3.22.0 is placed before 3.9.1 and 3.9.1 is the last element.The text was updated successfully, but these errors were encountered: