When trying to use the @fromSchemaResource macro, I got an Input stream is null exception even though the schema was in the resources directory and the path was correct. I found that this was due to the resources not being available at compile time when the macro runs.
Adding the following to my build.sbt solved the issue:
unmanagedClasspath in Compile ++= (unmanagedResources in Compile).value
Perhaps it would be good to mention this in the documentation.
When trying to use the
@fromSchemaResourcemacro, I got anInput stream is nullexception even though the schema was in the resources directory and the path was correct. I found that this was due to the resources not being available at compile time when the macro runs.Adding the following to my build.sbt solved the issue:
unmanagedClasspath in Compile ++= (unmanagedResources in Compile).valuePerhaps it would be good to mention this in the documentation.