You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that AttributeA and AttributeB are based on Attribute.
After running scalaxb I see this generates the following code:
case class Funky(funkyoption: Seq[scalaxb.DataRecord[model.FunkyOption]] = Nil, readOnly: Boolean = false)
trait FunkyOption
case class AttributeA(...) extends Attribute with FunkyOption
case class AttributeB(...) extends Attribute with FunkyOption
then when i go to the console I cannot reference FunkyOption getting error: not found: type FunkyOption
is this a problem?
In fact it seems that FunkyOption is completely skipped as its extended classes after a module import are defined as:
case class AttributeA(...) extends Attribute
case class AttributeB(...) extends Attribute
over xmlprotocol.scala i see this definition for Attribute parser (not sure if required for FunkyOption but it's missing):
I saw this after a bit of debugging when I was unable to define circe codecs for my Funky case class, potentially because of missing implicit conversions, and my first clue at this point is the missing FunkyOption.
what i expect
That I have access to FunkyOption and its implicit conversions.
thanks in advance for the time and also for all the hard work with this tool!
cheers
Vidal
The text was updated successfully, but these errors were encountered:
Hi folks,
I have been trying to make this xsd schema work with no luck, and at this point I'm wondering if it is a bug or if i am missing something:
Repro Steps
define the xsd containing:
Note that
AttributeA
andAttributeB
are based onAttribute
.After running
scalaxb
I see this generates the following code:then when i go to the console I cannot reference
FunkyOption
gettingerror: not found: type FunkyOption
is this a problem?
In fact it seems that
FunkyOption
is completely skipped as its extended classes after a module import are defined as:over
xmlprotocol.scala
i see this definition for Attribute parser (not sure if required forFunkyOption
but it's missing):I saw this after a bit of debugging when I was unable to define circe codecs for my
Funky
case class, potentially because of missing implicit conversions, and my first clue at this point is the missingFunkyOption
.what i expect
That I have access to
FunkyOption
and its implicit conversions.thanks in advance for the time and also for all the hard work with this tool!
cheers
Vidal
The text was updated successfully, but these errors were encountered: