olabusayoT commented on code in PR #1065:
URL: https://github.com/apache/daffodil/pull/1065#discussion_r1529198906
##########
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:
So it looks like java.nio.file.Path is not serializable and it causes a
bunch of serialization errors in the tdmlprocessor. So I'm not sure we can make
diagnosticPath a java.nio.file.Path
--
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]