mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
fixed string bug
This commit is contained in:
parent
9d014e89bc
commit
f329b94625
Binary file not shown.
@ -5,11 +5,17 @@
|
||||
<artifactId>swagger-client</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>swagger-client</name>
|
||||
<version>1.0</version>
|
||||
<version>1.0.0</version>
|
||||
<prerequisites>
|
||||
<maven>2.2.0</maven>
|
||||
</prerequisites>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>com.wordnik</id>
|
||||
<name>wordnik-ci-aws</name>
|
||||
<url>https://ci.aws.wordnik.com/artifactory/m2-snapshots/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>scala-tools.org</id>
|
||||
|
@ -41,7 +41,8 @@ object ApiInvoker {
|
||||
}
|
||||
|
||||
def deserialize(json: String, containerType: String, cls: Class[_]) = {
|
||||
if (cls == classOf[String]) {
|
||||
println("deserializing " + json)
|
||||
if (cls == classOf[String] && containerType == null) {
|
||||
json match {
|
||||
case s: String => {
|
||||
if (s.startsWith("\"") && s.endsWith("\"") && s.length > 1) s.substring(1, s.length - 2)
|
||||
|
Loading…
Reference in New Issue
Block a user