Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DIG-1079, DIG-1226: validate ETL beyond jsonschema #20

Merged
merged 35 commits into from
Jul 18, 2023

Conversation

daisieh
Copy link
Member

@daisieh daisieh commented Jul 14, 2023

  • Make defaults explicit: default mappings are implemented as mohschema.add_default_mappings and don't add back template lines not in the mapping file.
  • The mohschema class now implements its own validations beyond jsonschema. Fields required in the data model throw MoHValidationErrors; everything else gets logged as warnings.
  • Miscellaneous fixes that I noted while updating https://github.com/CanDIG/clinical_ETL_data/pull/21

Test by pulling this and then using the datasets in https://github.com/CanDIG/clinical_ETL_data/pull/21

@daisieh daisieh requested a review from kcranston July 14, 2023 19:09
@daisieh daisieh changed the title DIG-1079: validate ETL beyond jsonschema DIG-1079, DIG-1226: validate ETL beyond jsonschema Jul 15, 2023
@daisieh daisieh requested a review from yavyx July 17, 2023 20:09
Copy link
Contributor

@yavyx yavyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working

@kcranston
Copy link
Member

Can you also update the README to describe the new 'beyond jsonschema' validation?

@daisieh daisieh merged commit 187565a into main Jul 18, 2023
@daisieh daisieh deleted the daisieh/validate-coverage branch July 18, 2023 05:44
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.

None yet

3 participants