Skip to content

Decode Thrift with IDL files

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Sep 20:03
· 162 commits to master since this release
a50e6fc

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, where com.mycompany.schema is the namespace and Account 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