Git Product home page Git Product logo

Comments (6)

tompro avatar tompro commented on June 15, 2024

Found others having that same issue:
http://stackoverflow.com/questions/41102982/swagger-akka-http-not-working-after-upgrading-akka-2-4-14

from swagger-akka-http.

pjfanning avatar pjfanning commented on June 15, 2024

https://github.com/pjfanning/swagger-akka-http-sample has a simple example that uses Akka-Http 10.0.0 and that works.
The core swagger.io code is tied to Jackson 2.4.x. Could you check your application to see if it is using a newer version of Jackson?
https://github.com/pjfanning/swagger-akka-http-sample has a scala 2.12 branch where I do get the sample to work with a newer Jackson jar (this branch also works in scala 2.11). To get it to work though, I had to patch the core swagger code.

from swagger-akka-http.

tompro avatar tompro commented on June 15, 2024

You are right the project depends on Jackson 2.7.x. I have tried to build the 2.12 (0.8.2-SNAPSHOT) but your patches to swagger core seem to be published local (obviously ;) ). Thanks for the quick response. I'll have to wait for a working version before I can further migrate the project then.

from swagger-akka-http.

pjfanning avatar pjfanning commented on June 15, 2024

The patched swagger core jars are hosted at jipack.
In sbt, use:
resolvers += "jitpack" at "https://jitpack.io"
resolvers += Resolver.sonatypeRepo("snapshots")

from swagger-akka-http.

tompro avatar tompro commented on June 15, 2024

Wow that's cool jitpack ! I didn't know that exists. I'll give it a try. Thanks a lot!

from swagger-akka-http.

tompro avatar tompro commented on June 15, 2024

And yes this already works like a charm!

from swagger-akka-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.