Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-1874

Incorrect warning message about default value and no empty representation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Middle "End"
    • Labels:
      None

      Description

      NACHA schema (on DFDLSchemas github) has a ticket about suppressing a warning that we get for almost every element in that schema:

      https://github.com/DFDLSchemas/NACHA/issues/2

      This is the warning we get:
      {{{Schema Definition Warning: Element has no empty representation so cannot have XSD default='0' as a default value.
      Schema context: element reference

      {ach:2013}

      PriorityCode Location line 55 column 18 in file:/home/mbeckerle-unencrypted/DFDLSchemas/NACHA/2013/nacha_records.xsd}}}

      The warning is misleading, it should say that for an element with no empty rep the default value can only be applied on unparsing (where the criteria is that the element is not in the infoset).

      AND that corrected warning, which we'll still get for every element of NACHA, needs to be suppressable for a schema like NACHA where otherwise you get dozens of them.

        Attachments

          Activity

            People

            • Assignee:
              dfthompson Dave Thompson
              Reporter:
              mbeckerle Michael Beckerle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: