Skip to content

field.name.suffix

Set a suffix to append to field names in API documentation.

Usage

properties
field.name.suffix=groovy:'''
if (!fieldContext) return null
def parentPath = tool.substringBeforeLast(fieldContext.path(),".")
return session.get("field.suffix",parentPath)
'''

This is typically used with Jackson's @JsonUnwrapped annotation to add suffixes to unwrapped fields.

See Also

Released under the Apache-2.0 License.