I am unable to set dynamic string to the Annotation value in groovy/grails
import io.swagger.annotations.ApiModelProperty
class ProjectSearchRequest {
String firstName ="prasanjeet"
String lastName ="debnath"
String dynamicString = firstName + " - " + lastName
@ApiModelProperty(
value = dynamicString
)
List<String> reportTypes
}