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.
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.