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


##########
daffodil-lib/src/main/scala/org/apache/daffodil/lib/api/DaffodilSchemaSource.scala:
##########
@@ -58,24 +58,29 @@ sealed trait DaffodilSchemaSource {
    * False otherwise.
    */
   def isXSD: Boolean
+
+  /**
+   * Use to get the original file path passed into Daffodil
+   */
+  def diagnosticFilepath: String
 }
 
 object URISchemaSource {
-  def apply(fileOrResource: URI) = {
-    new URISchemaSource(fileOrResource)
+  def apply(fileOrResourceRaw: String, fileOrResourceUri: URI): 
URISchemaSource = {
+    new URISchemaSource(fileOrResourceRaw, fileOrResourceUri)
   }
 }
 
-class URISchemaSource protected (val fileOrResource: URI) extends 
DaffodilSchemaSource {
+class URISchemaSource protected (val raw: String, val uri: URI) extends 
DaffodilSchemaSource {

Review Comment:
   Uri.getPath returns a string, not a nio Path, but we can use the 
uriToDiagnosticPath function to ensure we return nio Paths instead of string



-- 
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