Skip to content

Commit

Permalink
updated request body of user profile json for put method (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
urio999 authored Jan 13, 2025
1 parent 9294f95 commit 4d18fb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.fasterxml.jackson.annotation.JsonBackReference;
import greencity.enums.EmailPreference;
import greencity.enums.EmailPreferencePeriodicity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
Expand All @@ -17,9 +18,11 @@
@Builder
@EqualsAndHashCode
public class UserNotificationPreferenceDto {
@Schema(accessMode = Schema.AccessMode.READ_ONLY)
private Long id;

@JsonBackReference
@Schema(accessMode = Schema.AccessMode.READ_ONLY)
private UserVO userVO;

private EmailPreference emailPreference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ public class UserProfileDtoRequest {
private String name;

@Size(max = 170)
@Schema(example = "Lets Make The World A Better Place")
private String userCredo;

@ValidSocialNetworkLinks
@Schema(example = "https://www.facebook.com/greencity")
private List<String> socialNetworks;

@NotNull
Expand Down

0 comments on commit 4d18fb9

Please sign in to comment.