Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pyQuARC/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@ def display_results(self):
f"\n\t {COLOR['title']}{COLOR['bright']} pyQuARC ERRORS: {END}\n"
)
for error in pyquarc_errors:
error_prompt += f"\t\t ERROR: {error['type']}. Details: {error['details']} \n"
error_prompt += (
f"\t\t ERROR: {error.get('message', 'No message available')} \n"
f"\t\t DETAILS: {error.get('details', 'No details available')} \n"
)

if cmr_validation := error.get("cmr_validation"):
cmr_error_msg = self._format_cmr_error(cmr_validation)
Expand Down
26 changes: 24 additions & 2 deletions pyQuARC/schemas/rule_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -4137,6 +4137,11 @@
"fields": [
"RelatedUrls/Type"
]
},
{
"fields": [
"Collection/OnlineResources/OnlineResource/Type"
]
}
],
"umm-g": [
Expand Down Expand Up @@ -4170,6 +4175,11 @@
}
],
"umm-c": [
{
"fields": [
"Collection/OnlineResources/OnlineResource/Type"
]
},
{
"fields": [
"RelatedUrls/Type",
Expand All @@ -4187,7 +4197,7 @@
]
},
"severity": "warning",
"check_id": "availability_check"
"check_id": "one_item_presence_check"
},
"characteristic_name_uniqueness_check": {
"rule_name": "Characteristic Name Uniqueness Check",
Expand Down Expand Up @@ -4818,11 +4828,23 @@
"RelatedUrls/Description",
"RelatedUrls/URL"
]
},
{
"fields": [
"Granule/OnlineAccessURLs/OnlineAccessURL/URLDescription",
"Granule/OnlineAccessURLs/OnlineAccessURL/URL"
]
},
{
"fields": [
"Granule/OnlineResources/OnlineResource/Description",
"Granule/OnlineResources/OnlineResource/URL"
]
}
]
},
"severity": "warning",
"check_id": "availability_check"
"check_id": "one_item_presence_check"
},
"get_data_url_check": {
"rule_name": "GET DATA URL check",
Expand Down