-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add bp image schema #445
Add bp image schema #445
Conversation
50073dc
to
24b5236
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before refactoring XML parser to parse BP related xml files, it's important we have working schemas and example xml files that validate against the schemas. Here are the problems I found with these current files.
A helpful command line tool for validating these files can be found here, which validates the files in the same way the methods in helpers/validator.py
does.
4c86294
to
ba95ff0
Compare
6cee759
to
3eafb8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the parser parses the example image xml, these following changes to the image json schema would validate the json object correctly... almost
In MetadataXMLConverter lists need to be explicitly created from objects if schema demands lists.
6ed8d60
to
eca039c
Compare
Adds test file with only one image object as there is bug for processing multiple object XML: #479
eca039c
to
6020783
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is now good for parsing a single BP image from an XML file into JSON and adding it to DB. Added a unit test for parser as well.
Thanks, @csc-jm for the tests! |
Description
Add schema for BP image
Related issues
Related #446
Type of change
Changes Made
Adds new schema image for validation and database writes
Testing
Mentions