Skip to content
Permalink
Browse files

Properly Format BigDecimal Attributes.

This builds on eed3si9n#483.
The case is not solved when `toXML` is called for a generated class and one of its attribute is a BigDecimal.
  • Loading branch information...
tOverney committed Apr 5, 2019
1 parent dddfbfb commit e4d8afddddd1df207376ef24bfd7d1f0668b0ec9
Showing with 1 addition and 0 deletions.
  1. +1 −0 cli/src/main/scala/scalaxb/compiler/xsd/XMLOutput.scala
@@ -115,6 +115,7 @@ trait XMLOutput extends Args {
case symbol: BuiltInSimpleTypeSymbol =>
buildTypeName(symbol) match {
case "javax.xml.namespace.QName" => "scalaxb.Helper.toString(%s, __scope)" format selector
case "BigDecimal" => selector + ".toPlainString"
case _ => selector + ".toString"
}
case ReferenceTypeSymbol(decl: SimpleTypeDecl) =>

0 comments on commit e4d8afd

Please sign in to comment.
You can’t perform that action at this time.