Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: release/1.3.x
Choose a base branch
from

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.

None yet

1 participant