-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Option[Int] stopped working with version >= 0.13.0 #72
Comments
The real issue is that the Jackson Databind code is type erasing the inner type for Option[Int].
So based on this, all that swagger-akka-http can do is treat this as an object as opposed to an int. |
Ok but why was working with 0.12.0 ? |
code changed in 0.13.0 but the |
the only safe workaround is to use swagger annotations to correct the issue, eg
|
this jackson issue seems similar to FasterXML/jackson-module-scala#368
|
This issue should be resolved by using the latest version of https://github.com/swagger-akka-http/swagger-scala-module |
After we upgraded to 0.13.0
Option[Int]
is no more converted correctly.This test passes with 0.12.0 but not after:
io.swagger.models.properties.ObjectProperty@d9eac59d was not an instance of io.swagger.models.properties.BaseIntegerProperty, but an instance of io.swagger.models.properties.ObjectProperty
The text was updated successfully, but these errors were encountered: