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

Fix/extract and validate #88

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Fix/extract and validate #88

merged 3 commits into from
Aug 12, 2024

Conversation

mfshao
Copy link
Contributor

@mfshao mfshao commented Jul 30, 2024

  • Fixed a problem with some pd.Series typed values
  • Fixed a problem with CSV schema for validation
  • Removed some unneeded codes

@@ -170,18 +178,14 @@ def stringify_keys(dictionary):
dictionary[str(key)] = dictionary.pop(key)


def unflatten_from_jsonpath(field,missing_values=[None,""]):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The removed argumet was never being used by any of its callers

@@ -313,7 +313,7 @@
"property.\n",
},
"constraints.minimum": {
"type": "integer",
"type": "string",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because everything has been casted to strings when reading in from https://github.com/HEAL/healdata-utils/blob/main/src/healdata_utils/validators/validate.py#L26

@mfshao mfshao marked this pull request as ready for review August 5, 2024 21:49
@mfshao mfshao requested a review from AJuehneNIH as a code owner August 5, 2024 21:49
@AJuehneNIH AJuehneNIH merged commit 5080227 into main Aug 12, 2024
2 checks passed
@mfshao mfshao deleted the fix/extract-and-validate branch August 12, 2024 15:35
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.

2 participants