zio-schema icon indicating copy to clipboard operation
zio-schema copied to clipboard

XML codec implemented

Open harshtech123 opened this issue 10 months ago • 7 comments

This XML codec uses Scala-xml as dependency

this codec insures fully round trip , provide ability to encode and decode xml and supports every primitive and dynamic types

/claim #754 /closes #754

harshtech123 avatar Feb 08 '25 17:02 harshtech123

@jdegoes adding support for native and tests as well . i am on it !

harshtech123 avatar Feb 09 '25 06:02 harshtech123

@jdegoes can i only go for jvm support for now since , in scala -xml the SAX APIs (for example, classes like org.xml.sax.EntityResolver and org.xml.sax.ErrorHandler), which are available on the JVM but not on Scala.js or Scala Native. In other words, even though Scala XML 2.3.0 is published for Scala Native (and Scala.js), certain XML parsing functionality (typically those based on the SAX parser) isn’t natively supported on those platforms.

harshtech123 avatar Feb 09 '25 08:02 harshtech123

@harshtech123 This still needs a full and exhaustive test suite before consideration. Thank you!

jdegoes avatar Feb 11 '25 18:02 jdegoes

@jdegoes i am on it , we will implement this for jvm only and have fully end to end tests for assertions, thank you

harshtech123 avatar Feb 11 '25 19:02 harshtech123

@jdegoes full and exhaustive test suits are implemented now for each encoding , decoding and roundtrip , thank you !

harshtech123 avatar Mar 25 '25 12:03 harshtech123

It is not passing Lint nor the build. Please take a look and fix!

jdegoes avatar Mar 29 '25 21:03 jdegoes

fixed lint and build issues , thank you !

harshtech123 avatar Mar 30 '25 14:03 harshtech123