@namespace("a.b.c")
protocol Test{
record Inner {
string a;
long b;
boolean c;
}
record Outer{
Inner inner;
}
}
produces:
/** MACHINE-GENERATED FROM AVRO SCHEMA. DO NOT EDIT DIRECTLY */
package aa.bb.cc
final case class Inner(a: String, b: Long, c: Boolean)
final case class Outer(inner: a.b.c.Inner)
Changes introduced in https://github.com/julianpeeters/avrohugger/pull/169 might result in generating invalid type references for fields when
avroScalaCustomNamespace
is used.For example, using
sbt-avrohugger
2.5.1:and
produces:
Probably
customNamespaces
needs to be taken into account when usingschema.getFullName
here: https://github.com/julianpeeters/avrohugger/blob/main/avrohugger-core/src/main/scala/matchers/TypeMatcher.scala#L69