Skip to content

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

Open
domartynov wants to merge 1 commit intospray:release/1.3.xfrom
domartynov:fix-optionformat-inner-class
Open

Move out OptionFormat from StandardFormats to allow mix with custom implicits modules#348
domartynov wants to merge 1 commit intospray:release/1.3.xfrom
domartynov:fix-optionformat-inner-class

Conversation

@domartynov
Copy link

@domartynov domartynov commented Apr 22, 2022

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:

case _: OptionFormat[_] if (value == None) => rest

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant