Open ESapenaVentura opened 1 week ago
PLEASE IGNORE THIS COMMENT, THIS WAS DUE TO USING AN INVALID ENVIRONMENT AND ACTION
I think units
are still not being represented/generated correctly in the schemas we generate. An example is with checklist ERC00040, sample SAMEA104451028
. This fails XML validation on ENA, but does not fail JSON schema validation. The property "depth" should enforce units, and for those units to have a specific set of requirements (I think e.g. for depth is m or mm). This property in the schema does not enforce that at all.
Documents against checklist ERC000056
failed validation because, well... it does not exist
@ESapenaVentura are you using the dev
environment @ wp-np2-44
?
The ERC000040 seems to have required unit
there.
Got it now - After talking with Dipayan, we figured out in the dev environment, the VALIDATE
action does not work properly
I am repeating the run modifying the action to ADD
. It's a lot slower, so I think we will get the results on Monday
The results are in the body of the ticket - I have already spoken with Dipayan and Isuru about them
After task #59, to ensure that the validation produces the same result, I am going to run a test submission of the documents we have available in CODON and compare it with our previous results, performed before the change.
Run011
Copy the XMLs to the new directory
Run the XML validation script
NOTE: the script
Compare results
First, should compare if the number of invalid documents are the same. To do this:
This creates 3 documents:
Check the discrepancy between old and new validation
cat
ting the results, I can see that the only difference is between the documents validated against checklistERC000056
(See example below)I am talking with Dipayan/Isuru and trying to find out what's happening with those documents
Compare validation messages
For the results that are invalid, I want to compare that the validation messages are:
For the compatibility, I want to test:
We have the exact same number of errors (When we ignore the extra duplicated generic validation error + the runtime error), so no need to do extra checks to see if they point to the same properties - They should.
However, manual check of the errors have led me to see that the new validation response does not point out to the property, making the messages not useful. Pointing it out in the summary.
Summary
<ERROR>0b2b103f-8d6f-4601-a824-9f521fc2ccba failed validation due to must have required property 'unit'</ERROR>
. This needs to be worked out; Biovalidator gives access to the path and the path needs to be used in the error message.java.lang.RuntimeException
this should be gone<ERROR>0b2b103f-8d6f-4601-a824-9f521fc2ccba failed validation due to Just one of the following properties must be specified: 'geographic location (country and/or sea)'</ERROR>
to `