librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 204 forks source link

PackageManager::CPAN.dependencies(): fix this by passing the CPAN API "_source" instead of "field" #3254

Closed tiegz closed 8 months ago

tiegz commented 8 months ago

we need to select "dependency" as a returned field from their ES API, but "dependency" is an Object itself so ES complains that it's not a leaf node. Using _source lets us return that field specifically.

docs on _source vs field docs on metacpan's API