https://github.com/palantir/conjure-python-client/pull/150 added the option in conjure-python-client to return None when encountering unknown union variants, but conjure-python doesn't include this option in the conjure generated code.
After this PR
This PR:
Upgrades the conjure-python-client dependency to 2.8.0
Updates the code generating a Service to propagate the _return_none_for_unknown_union_types flag to the decode method. This flag can be passed by the caller to RequestsClient.create(..)
==COMMIT_MSG==
Add option to return none on unknown union variants
==COMMIT_MSG==
Before this PR
See https://github.com/palantir/conjure-python-client/issues/129
https://github.com/palantir/conjure-python-client/pull/150 added the option in conjure-python-client to return
None
when encountering unknown union variants, but conjure-python doesn't include this option in the conjure generated code.After this PR
This PR:
Service
to propagate the_return_none_for_unknown_union_types
flag to thedecode
method. This flag can be passed by the caller to RequestsClient.create(..)==COMMIT_MSG== Add option to return none on unknown union variants ==COMMIT_MSG==
Possible downsides?