Comments (3)
I think the reason for this is that play 2.7 uses a later version of com.fasterxml.jackson.core:jackson-databind
(namely 2.9.8) with which swagger 1.6.x is not compatible with (it uses 2.8.6).
Overriding the dependency in sbt worked for me (although I haven't tested it extensively).
This means I added this in my build.sbt
file
dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.6"
This as a workaround, until swagger gets updated, which would be the proper solution.
from swagger-play.
please update the swagger for play 2.7
from swagger-play.
Will you guys release a version for playframework 2.7 soon?
For now I added jackson-module-scala-2.9.8 together with swagger-play deps.
val swagger = Seq(
"io.swagger" %% "swagger-play2" % "1.6.0",
"io.swagger" % "swagger-core" % "1.5.22",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.8",
"org.webjars" % "swagger-ui" % "3.13.0"
)
from swagger-play.
Related Issues (20)
- @ApiModelProperty(hidden = true) doesn't work HOT 3
- Update to jackson-module-scala 2.9.8 HOT 1
- Route rule with optional package name for controllers (Play2.7) HOT 1
- Swagger timeout on HTTPS listener (and workaround)
- Use Swagger Core 2.x / OpenAPI 3.0 HOT 1
- ApiListingCache share same cache for different docRoots
- Hidding query parameter from the controller method HOT 1
- Scala 2.13.x support HOT 5
- Unable to load play routes after publishing build locally for play2.6
- Java Play 2.7 "CreationException: Unable to create injector:"
- Support play 2.8.x HOT 1
- Add support for vendor Extensions in API Info
- Method newInstance Deprecated as of Java 9
- Usage section isn't up-to-date? HOT 4
- oneOf, anyOf, allOf support? HOT 1
- controllers.ApiHelpController.getResource(path = "/users") picks up tags from other pathes
- Way to create swagger.json automatically HOT 9
- swagger.api.host default value
- jackson InvalidDefinitionException HOT 1
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-play.