Schema update for umm-c (1.18.2 to 1.18.4) #328
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the PR: This is PR request to update the schema for umm-c. The code changes will automatically read the schema format from the NASA cdn website. By directly referencing the .json schema file from the NASA schema collection, we eliminate the need to manual update the .json files in PyQuARC. The code fix also includes capabilities to quickly update the schema to the recent version, depending on the PyQuARC or ESDS needs during the release.
Code changes: The code changes are made in the
schema_Validator.py,checker.py, andutils.py. Further, we updated the outdated files in thetest_downloader.pyandschema_validator.py. There was an outdated imports DraftValidator, and this has to be updated before every commit. The final code is test by running pytest, and the run was successful before committing the code changes.To reproduce:
C1000000010-CDDIS (umm-c 1.18.4)
C1905434780-CDDIS (umm-c 1.18.3)
C2792603656-CDDIS (umm-c 1.18.3)
Expected output: You should not see a flag for MetadataSpecification/Version when you run PyQuARC.