In my request body DTO, I want specific fields to be required for one of the API but not for another.
My Request body
@Data class MyClass{ @NotNull private