Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1651

Support annotations on all elements

    XMLWordPrintableJSON

Details

    Description

      Custom annotations are currently supported on almost all types, but not on enums (and their values), exceptions, functions and services. This issue proposes to add that support, so that all type definitions are uniform in this regard.

      This is useful, in particular, in custom code generation off thrift IDLs. For example, we want to annotate each value in an enum with a "database name" so we can match it with enum names in our database (which for various reasons are not the same as the names of the enum values).

      Attachments

        Activity

          People

            Unassigned Unassigned
            benjyw Benjy Weinberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: