Comments (6)
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.
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.
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.
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.
Wow that's cool jitpack ! I didn't know that exists. I'll give it a try. Thanks a lot!
from swagger-akka-http.
And yes this already works like a charm!
from swagger-akka-http.
Related Issues (20)
- Required properties do not work for case class with fields of the same type HOT 2
- Produce Swagger 2.0 Specification with swagger-akka-http v2.0.4 HOT 1
- Update to akka 2.6.x? HOT 7
- Disable swagger api and document generation. HOT 2
- How change swagger doc to Swagger 2.0.x specification instead of OpenApi 3 ? HOT 1
- How can I generate the complete API path when my routing are split into multiple classes? HOT 2
- add back ability to set schemes in Java API HOT 15
- add host and security to Java SwaggerGenerator HOT 1
- Generic type in ApiResponse HOT 1
- jackson 2.13 HOT 4
- Swagger-akka-http with UI built using webjar HOT 4
- Scala 3 binaries? HOT 1
- Swagger generates empty schemas HOT 7
- Some endpoints don't get generated, but with no error?? HOT 3
- Question : How can I specify one or more base URLs for the API using an array of servers? HOT 2
- support OpenAPI v3.1.0 HOT 1
- Update Jackson Dependency HOT 5
- Investigate switching to Pekko due to OS license change HOT 4
- NullPointerException when annotations are unavailable (not defined or private) HOT 5
- Support for Scala 3 cross compilation & upgrade of dependencies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-akka-http.