You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Josh Adams (Jira)" <ji...@apache.org> on 2023/02/24 16:25:00 UTC

[jira] [Resolved] (DAFFODIL-2212) Enumerations validate length on symbolic elements

     [ https://issues.apache.org/jira/browse/DAFFODIL-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Adams resolved DAFFODIL-2212.
----------------------------------
      Assignee:     (was: Josh Adams)
    Resolution: Fixed

This was actually fixed a couple years ago by commit f3ef3b9f5a5cddaf74c04d8d3026f8b99d72cbff and multiple tests similar to the schema attached to this ticket have been added.

> Enumerations validate length on symbolic elements
> -------------------------------------------------
>
>                 Key: DAFFODIL-2212
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2212
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 2.4.0
>            Reporter: Brandon Sloane
>            Priority: Major
>              Labels: reverify
>             Fix For: 3.5.0
>
>         Attachments: a.dfdl.xsd
>
>
> Consider the schema:
> {quote}<xs:element name="a" type="SomeEnumType"/>
> {quote}
> Where SomeEnumType is an enumeration type (eg, has a dfdlx:repType)
> If this is the root element, then the schema behaves as expected. However, when this is not the root element, Daffodil extraneously complains invalid settings on a:
>  
> {quote}[error] Schema Definition Error: String with dfdl:lengthKind='implicit' must have an XSD maxLength facet value.
> Schema context: a Location line 25 column 10 in file:/home/bsloane/Documents/incubator-daffodil/test/test/a.dfdl.xsd
> {quote}



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