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

Add spray-json support #288

Closed
wants to merge 3 commits into from
Closed

Conversation

vpavkin
Copy link
Contributor

@vpavkin vpavkin commented Mar 20, 2020

Adds support for spray-json, the same way it's done for circe. My ultimate goal here is to make specific http modules (namely akka-http) to have pluggable json backends.

The only problem ATM is that spray-json is not published for ScalaJS yet. So there're some hoops to jump to make it work with fully cross-built caliban.
Support for ScalaJS in spray is actually already implemented and merged, we just lack a release (spray/spray-json#327). So I think we can wait until it's released to make this PR prettier.

@ghostdogpr
Copy link
Owner

Actually I'm a bit concerned about ScalaJS support. Currently caliban is still on ScalaJS 0.6.x because some dependencies are not yet published for 1.x (namely: ZIO and sttp). But both of them should arrive soon-ish so I'm hoping to upgrade ScalaJS to 1.x as soon as they are available. Spray-json is currently on 0.6x on master. Considering it's not published very often (the PR to add ScalaJS support was merged 9 months ago), I'm afraid this becomes a blocker.

What do you think? Or maybe we could merge this once spray-json is published for ScalaJS 1.x and Caliban upgrades?

An alternative is to make it a separate module, JVM only.

@vpavkin
Copy link
Contributor Author

vpavkin commented Mar 21, 2020

Yep, I'm on the same page with you here - don't want this to become a blocker in future. I pinged spray maintainers wherever I could, so let's see how fast and involved they actually are these days.

No rush here.

@vpavkin
Copy link
Contributor Author

vpavkin commented Mar 24, 2020

Plan changed to proceed with play-json instead of spray. closing this one

@vpavkin vpavkin closed this Mar 24, 2020
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.

2 participants