Contributions
Conditionals are not supported in this regex dialect.
I have this regex evolved on http://www.regex101.comand it seems to work properly. When I copy this regex into the OpenApi@Pattern annotation in a Spring Boot 2.5.4 application with springdoc-openapi (tried v1.4.8 and v1.6.1, supporting OpenApi v3) I get the message This is the regex: ^XXX_(?:(?<DT>A12|B43|D14))?(?(DT)(_\d{5}_\d{1,3})|(?!(?&DT))(?!.*_\d{3}(?!\d))).*\.ZZZ$ What is the name of the dialect used by OpenApi? Is it possible to tell OpenApi to use another dialect?? How can I modify the regex to meet OpenApi's requirements/to use the proper dialect?564Views0likes0CommentsDisplaying enum properties
I have an enum like this: @Getter public enum ErrorCode implements BaseError { // @formatter:off FOO(100001, "Foo message.", BAR(100002, "Bar message."), . . . FOOBAR(300003, "FOOBAR message."); public final int errorId; public final String errorMsg; ErrorCode(int errorId, String errorMsg) { this.errorId = errorId; this.errorMsg = errorMsg; } } I know, I can use @Schema(implementation = ErrorCode.class) to display the enum in SwaggerUI but it displays the name. Ist there a way to display the errorId (or any other defined properties (or even combination) of an enum)? In this case I would like to display the list of errorCodes instead of the default which displays the list of the enum names.468Views0likes0Comments