rest.li v0.14.6 Release Notes

  • (RB=41257)

    👍 1. Add support for typeref to enable aliasing primitive types. Typeref works for any type (not just primitive). There is no support yet for binding different Java classes to the typeref'ed types. If a typeref is member of union, then the accessor method names for accessing the member are derived from the typeref name.

    1. Serialization protocol and format does not change. The serialized representation of the member key is always the actual type, i.e. the type reached by following chain of typerefs.

    2. Rest.li @Action and @ActionParam now has optional 'typeref' attribute that specifies the typeref that should be emitted to the IDL instead of the type inferred from the Java type. The provided typeref must be compatible with the Java type.

    KNOWN ISSUE - Unions cannot be used as return or parameter for actions.