mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 07:31:01 +00:00
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)) {
|
else if(String.class.equals(cls)) {
|
||||||
if(json != null && json.startsWith("\"") && json.endsWith("\"") && json.length() > 1)
|
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
|
else
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user