Open
Description
hi! just migrated from 2.2.28 to 2.2.30 and now @NotNull (jakarta.validation.constraints.NotNull) doesn't generate the required parameter when assigning a validation group.
Using the @NotNull alone generates the expected spec and adds it as required.
DTO
import jakarta.validation.constraints.NotNull;
import java.util.List;
public class Request {
private boolean booleanProperty;
@NotNull(groups = SomeClass.class, message = "required")
private NotNullPropertyEnum notNullProperty;
@CustomValidator(groups = SomeClass.class)
private List<String> arrayProperty;
2.2.28
Request:
required:
- notNullProperty
type: object
properties:
booleanProperty:
type: boolean
notNullProperty:
type: string
enum:
- ENUM1
- ENUM2
arrayProperty:
type: array
items:
type: string
2.2.30
Request:
type: object
properties:
booleanProperty:
type: boolean
notNullProperty:
type: string
enum:
- ENUM1
- ENUM2
arrayProperty:
type: array
items:
type: string
Metadata
Metadata
Assignees
Labels
No labels