You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Olabusayo Kilo (Jira)" <ji...@apache.org> on 2023/04/14 14:43:00 UTC

[jira] [Created] (DAFFODIL-2808) Incorrect Validation Error on Optional Element with Children

Olabusayo Kilo created DAFFODIL-2808:
----------------------------------------

             Summary: Incorrect Validation Error on Optional Element with Children
                 Key: DAFFODIL-2808
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2808
             Project: Daffodil
          Issue Type: Bug
          Components: Back End
    Affects Versions: 3.5.0
            Reporter: Olabusayo Kilo
         Attachments: optionElementTest.scala, optionalElement.tdml

When you have an optional element with children element, daffodil calculates the number of occurrences it has by looking at the number of children it has, rather than calculating the number of times it appears. This results in an validation error saying the element occurred NUM_OF_CHILDREN_TIME when it was expected.


Attached is a TDML test that shows this incorrect validation error



--
This message was sent by Atlassian Jira
(v8.20.10#820010)