Skip to content

2.2.29 do not treat @NotBlank as mandatory, breaking change? #4862

Closed
@rikardhaggkvist

Description

@rikardhaggkvist

In previous versions

public class Bar {
@NotBlank
private String foo;
}

generated to

export interface Bar {
  foo: string;
}

in 2.2.29 @NotBlank is generated to:

export interface Bar {
  foo?: string;
}

which in turn breaks the TypeSript code with error "Type 'string | undefined' is not assignable to type 'string'."

Now I need to add @NotNull to all the @NotBlank annotations in my Java code, it seems to apply to @NotEmpty also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions