You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2024/03/12 16:31:41 UTC
[PR] Add test showing optional elements cannot have predicates in expressions [daffodil]
stevedlawrence opened a new pull request, #1179:
URL: https://github.com/apache/daffodil/pull/1179
Optional elements used to be implemented as arrays with a max size of one. A side effect of this was that accessing these elements in an expression required a predicate (e.g. /path/to/optional[1]).
However, at some point we changed the implementation so optional elements were no longer arrays and were added to the infoset just like scalars. This change also meant they no longer needed, or were allowed to have, predicates in expressions. This adds a test to confirm that behavior.
This also adds a colon to "subset" error messages to make the actual error message more clear.
DAFFODIL-2013
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add test showing optional elements cannot have predicates in expressions [daffodil]
Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence merged PR #1179:
URL: https://github.com/apache/daffodil/pull/1179
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org