forked from loafle/openapi-generator-original
Fixing a bug with truncated lone string responses
This commit is contained in:
parent
1007534575
commit
d5b959d8cd
@ -356,7 +356,7 @@ public class ApiClient {
|
||||
}
|
||||
else if(String.class.equals(cls)) {
|
||||
if(json != null && json.startsWith("\"") && json.endsWith("\"") && json.length() > 1)
|
||||
return json.substring(1, json.length() - 2);
|
||||
return json.substring(1, json.length() - 1);
|
||||
else
|
||||
return json;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user