Open AdamDeHovitz opened 3 years ago
I did some testing in java and found the following type conversions from conjure to java:
binary
-> BinaryResponseBody
optional<binary>
-> Optional<BinaryResponseBody>
list<binary>
-> List<ByteBuffer
@AdamDeHovitz List<ByteBuffer>
doesn't look like streaming to me, so at first glance it looks like this is consistent with the Java implementation, but I'm not 100% sure
Unlike with other return types, conjure-go special cases
binary
endpoints to use theReadCloser
stream type rather than the default[]byte
. Specifically, endpoints that returnbinary
useReadCloser
whileoptional<binary>
endpoints will return*ReadCloser
after the resolution of https://github.com/palantir/conjure-go/issues/192. In contrast endpoints with either aset<binary>
orlist<binary>
type use an unstreamable[][]byte
go type. Ultimately this might be the right choice but we should compare the implementation againstconjure-java
, validate that this type works, and add unit/integration testing to guarantee this behavior.