forked from loafle/openapi-generator-original
This will prevent submitting integer numbers instead of booleans when posting objects to the REST API.
This commit is contained in:
parent
4b9d0e6a10
commit
7ae4146a2b
@ -640,9 +640,9 @@ public class ObjcClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
BooleanProperty dp = (BooleanProperty) p;
|
||||
if (dp.getDefault() != null) {
|
||||
if (dp.getDefault().toString().equalsIgnoreCase("false"))
|
||||
return "@0";
|
||||
return "@(NO)";
|
||||
else
|
||||
return "@1";
|
||||
return "@(YES)";
|
||||
}
|
||||
} else if (p instanceof DateProperty) {
|
||||
// TODO
|
||||
|
Loading…
x
Reference in New Issue
Block a user