Endpoint generator does not support constants in annotations

Hello, is there any workaround for this? We would like to use the same constants also in junit tests.
Endpoint POJO:
public static final String REGEX_FIRST_NAME = “[1]+$”;

@Size(max = 15)
@Pattern(regexp = REGEX_FIRST_NAME)
private String firstName;

“firstName” : {
“type” : “string”,
“x-annotations” : [ “NotBlank()”, “Pattern({regexp:REGEX_FIRST_NAME})”, “Size({max:15})” ]
REGEX_FIRST_NAME is undefined in generated typescript file

  1. \p{L}\s- ↩︎

Currently not supported - https://github.com/vaadin/hilla/issues/246

Thanks for the info!