olabusayoT commented on code in PR #1574:
URL: https://github.com/apache/daffodil/pull/1574#discussion_r2430157364


##########
daffodil-core/src/main/scala/org/apache/daffodil/core/dpath/Expression.scala:
##########
@@ -780,6 +780,23 @@ sealed abstract class StepExpression(val step: String, val 
pred: Option[Predicat
     )
   }
 
+  def checkIfTargetIsLastStepAndArray(): Unit = {
+    if (isLastStep && isArray) {
+      if (tunable.allowLastUpStepToResolveToArray) {
+        SDW(
+          WarnID.DeprecatedLastUpStepToResolveToArray,
+          ".. resolving to an array is deprecated. Try ../../$array_name 
instead. Offending expression: '%s'.",

Review Comment:
   Re 3, I thought it would be helpful in this situation to include the whole 
expression, but you're right re the schema file location, so ill remove the 
last line



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to