Closed filpano closed 6 years ago
I have this problem, too.And I solved the problem by modifying the source code. In my understanding that the source code said the base type which is the parameter of method will set a default value by swift.
how to fix it???
thanks @SystemHan
I have a Swift Thrift interface which has several
String
and someBoolean
parameters (not a@ThriftStruct
).I read in the
@ThriftField
Javadocs lines 77-83 that you should be able to use wrappers for primitives.Together with setting the parameters as
@ThriftField(requiredness = Requiredness.OPTIONAL)
, this should have actually enabled me to also get anull
value on the receiving side. It works withString
- but not withBoolean
, which always has a default value offalse
even though I do not set it.Is this a known issue? Is there a workaround?