Skip to content

method.return

Override method return types.

Usage

properties
method.return=groovy:it.ann("com.example.CustomReturn")?.value()

Example

properties
# Use annotation value as return type
method.return=groovy:it.ann("com.example.CustomReturn")?.value()

See also: method.return.main for attaching @return doc comments to a specific field in the response type.

Released under the Apache-2.0 License.