spray-json icon indicating copy to clipboard operation
spray-json copied to clipboard

Move out OptionFormat from StandardFormats to allow mix with custom implicits modules

Open domartynov opened this issue 3 years ago • 0 comments

To fix an issue with a custom implicits module due to OptionFormat being an inner class of StandardFormats breaking the match in ProductFormats.productElement2Field when custom module implicits are used: https://github.com/spray/spray-json/blob/a2b4986d17f8cc9c9080ecf46af8f69dc72be1d5/src/main/scala/spray/json/ProductFormats.scala#L46

Changes include a test case that reproduces the issue.

The patch is my original work and I license the work to the spray-json project under the project’s open source license.

domartynov avatar Apr 22 '22 22:04 domartynov