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
case class Foo(size: String,
color: Option[String] = None,
id: Option[Long] = None)
Notice there is no default value for the "size" parameter.
My use case is that I am trying to serialize a json string into this case class and cannot make use of any default constructor parameters even though my schema defines them.
Internally we have patched GenSource in order to include the default values but are not entirely confident that there are no adverse side-effects from our modification.
The text was updated successfully, but these errors were encountered:
I noticed that the default values for my element parameters in my schema are not getting translated into the generated case classes.
For example, I have the following xsd snippet:
This is generating the following case class:
Notice there is no default value for the "size" parameter.
My use case is that I am trying to serialize a json string into this case class and cannot make use of any default constructor parameters even though my schema defines them.
Internally we have patched GenSource in order to include the default values but are not entirely confident that there are no adverse side-effects from our modification.
The text was updated successfully, but these errors were encountered: