forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into okhttp-gson-next-gen-better-error
This commit is contained in:
commit
80786836f7
@ -382,6 +382,8 @@ public class JSONTest {
|
||||
assertTrue(o.getActualInstance() instanceof BananaReq);
|
||||
BananaReq inst = (BananaReq) o.getActualInstance();
|
||||
assertEquals(inst.getLengthCm(), new java.math.BigDecimal(17));
|
||||
assertEquals(json.getGson().toJson(o), "{\"lengthCm\":17}");
|
||||
assertEquals(json.getGson().toJson(inst), "{\"lengthCm\":17}");
|
||||
}
|
||||
{
|
||||
// Try to deserialize empty object. This should fail 'oneOf' because none will match
|
||||
|
Loading…
x
Reference in New Issue
Block a user