Skip to main content

Known issue: Protobuf and Thrift export from OpenAPI projects

If you export a version of an OpenAPI project to Protobuf or Thrift, the file won't compile as it is. Integer, number and boolean fields come out with type names those formats don't use.

  • What you'll see: lines such as .integer id = 1; in a .proto file, or 1: optional integer id in a .thrift file. Thrift also numbers every field 1.
  • Workaround: change the types by hand. In Protobuf, use int64 (or int32), double and bool. In Thrift, use i64 (or i32), double and bool, and give each field its own id. Strings and every other export format are not affected.
  • Fixed in #6278 — see Protobuf and Thrift exports from OpenAPI now compile.