NASA-PDS / registry-api

Web API service for the PDS Registry, providing the implementation of the PDS Search API (https://github.com/nasa-pds/pds-api) for the PDS Registry.
https://nasa-pds.github.io/pds-api
Apache License 2.0
2 stars 5 forks source link

Responses do not return correct metadata when `fields` parameter is specified #548

Open jordanpadams opened 2 days ago

jordanpadams commented 2 days ago

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

When I did used the fields query parameter, I noticed the API returned many other fields I did not ask for

🕵️ Expected behavior

I expected only the fields I asked for to be returned

📜 To Reproduce

curl -L --get https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:msl_gt_diagenesis_supplement?fields=lid --header 'Accept: text/csv'

Confirmed this also does not work for:

🖥 Environment Info

Mac OSx

🦄 Related requirements

🦄 #459 🦄 #445

⚙️ Engineering Details

No response

🎉 Integration & Test

No response