conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Fill in "Round-trip of unknown variants" behaviour in wire spec

Open dansanduleac opened this issue 7 years ago • 1 comments

Right now, it just says TODO ask Mark. https://github.com/palantir/conjure/blob/develop/docs/spec/wire.md#behaviour

I think the whole point of supporting unknown variants was that they round trip so that an old "proxy" can pass on variants it doesn't understand without loss of information. @markelliot can you confirm the above so we can amend the wire spec?

dansanduleac avatar Sep 11 '18 10:09 dansanduleac

Yes, I think that if a language supports handling unknown values that it's required the actual value round-trip. There's a question of whether all languages should support unknown values, I'd contest we need that to be the case for the enum handling to be ergonomic.

markelliot avatar Sep 11 '18 17:09 markelliot