Thrift export compiles under the Thrift compiler
Exporting an item to Apache Thrift now writes a .thrift file the Thrift compiler accepts, from
an OpenAPI, Protobuf, GraphQL or any other typed or service-bearing source.
How the Thrift is written.
- Valid names. Type, field, method and service names that are not Thrift identifiers, or that are
reserved words such as
defaultandclass, are renamed (com.acme.Orderbecomescom_acme_Order). Each rename is in the fidelity report. - Every kind of type. Unions get a field per member, aliases and named scalars become
typedefs, and an item imported from Thrift keeps its owntypedefs. - Methods that compile. Parameters are gathered into a
<Method>Requeststruct, a method returns its success response, andthrowslists exceptions only. - Namespaces per language, with the new namespaces option.
- Checked. Each export is compiled with
thriftwhen the server has the Thrift compiler, and read back by the Thrift importer otherwise.
