nf-osi / jobs

0 stars 0 forks source link

Add another test for and handle when given slightly different representation for `dataDeposit` #56

Closed anngvu closed 1 year ago

anngvu commented 1 year ago

There are three ways that JSON data can be represented to mean "no datasets to deposit" here if checking dataDeposit. 1) Property is not present at all. 2) Property is present with null value. 3) Property is present with empty array. In the third case, this does serialize into a list of length 1, so the current condition is insufficient.