Decode Thrift with IDL files
·
162 commits
to master
since this release
Thrift decoding can now use your .thrift IDL files to decode the payload and output field names and num values instead of IDs.
Two new flags have been added to support this:
--thrift-dirs
: Path to the .thrift IDL files containing your struct definitions--thrift-struct
: namespace and name of the struct to decode the message with. Ex:com.mycompany.schema.Account
, wherecom.mycompany.schema
is the namespace andAccount
is the name of the struct that the message is encoded with
These flags are optional, and using --decode-type thrift
without these flags will retain the previous behavior
See example located in the docs: https://github.com/batchcorp/plumber/blob/master/docs/examples.md#thrift-decoding-with-idl-files