Skip to content

Return individual records for UMM JSON query formats - #127

Open
Shubham-Padkonde wants to merge 1 commit into
nasa:developfrom
Shubham-Padkonde:feat/parsed-umm-json-results
Open

Shubham-Padkonde wants to merge 1 commit into
nasa:developfrom
Shubham-Padkonde:feat/parsed-umm-json-results

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Closes #94.

Return entries from the items array for umm_json and versioned umm_json_v* responses, including each record's meta and umm fields. This covers results() and the older get() APIs, including tool, service, and variable queries. XML and other text formats continue to return whole pages.

This intentionally changes UMM JSON callers from page strings to record dictionaries; the README and iterator documentation describe the new behavior. Existing recorded-response tests now consume those records directly.

Validation: all 146 tests pass (python -m pytest tests -q -p no:cacheprovider). Sixteen parameterized cases cover two UMM formats, four query types, and both retrieval methods; all failed before the change. A separate test checks that XML remains unparsed. git diff --check passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return parsed items in results for all umm_json* formats

1 participant