Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

Wrong List serialization to XML #263

Open
mielientiev opened this issue Jan 30, 2017 · 1 comment
Open

Wrong List serialization to XML #263

mielientiev opened this issue Jan 30, 2017 · 1 comment

Comments

@mielientiev
Copy link
Collaborator

mielientiev commented Jan 30, 2017

Issue:
Wrong List serialization to XML

Example:

case class Foo(name: String, abc: List[String])
val user = Foo("Joe", List("abc", "1,2,3"))
val userXML = Xml(user) //userXML: rapture.xml.Xml = xml"""<name>Joe</name><abc>abc1,2,3</abc>"""
userXML.abc.as[List[String]] 

result is
xml"""<name>Joe</name><abc>abc1,2,3</abc>"""
List(abc1,2,3)

Expected:

val userXML = Xml(user) //userXML: rapture.xml.Xml = xml"""<name>Joe</name><abc>abc</abc><abc>1,2,3</abc>"""
userXML.abc.as[List[String]]  // List("abc", "1,2,3")
@mielientiev
Copy link
Collaborator Author

fixed at 3e20139

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant