Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add edge-case for DataGranule section #4

Merged
merged 2 commits into from
May 27, 2022
Merged

Conversation

jocelynmallon
Copy link
Contributor

When cleaning up UMM-G json, we have to specially handle the ‘DataGranule > Identifiers’ section, specifically:

For the Identifiers array to be included there must be at least one 'complete' array entry.
A complete entry requires both 'IdentifierType' and 'Identifier' fields, and the type must match a controlled vocabulary.

So, if we're missing either field, for any Identifier array element, remove it from the array, and if we end up with an empty array, remove the Identifiers section entirely.

When cleaning UMM-G json, we have to specially handle the ‘DataGranule > Identifiers’ section, as both type and value entries are required for all identifiers.
@jocelynmallon jocelynmallon requested review from yenes56 and ngachung May 27, 2022 05:39
@ngachung ngachung merged commit 5aac2f6 into release/7.0.1 May 27, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants