Skip to content

Scrooge 22.3.0

Compare
Choose a tag to compare
@finaglehelper finaglehelper released this 29 Mar 21:54
· 93 commits to develop since this release

22.3.0

New Features

  • scrooge-generator: for each method defined in a service in the Thrift IDL, if any request arg
    of a method has annotations started with validation., in Java template, generate a new trait
    ServerValidationMixin with a new API violationReturning<method_name> which validates incoming
    request (of Struct, Union, Exception types) and return any violations (as method parameters
    <request_variable>Violations) back to the users in the method API. aab91465

Breaking API Changes

  • scrooge: ThriftUnion is now defined to extend ThriftStruct. In practice,
    this is not a significant change as all Scrooge-generated classes that
    implement ThriftUnion also implement ThriftStruct. We just made the
    invariant that unions are always structs explicit in the type system.
    34ed2ec3

Runtime Behavior Changes

  • scrooge: Bump version of Jackson to 2.13.2. b283d341