Skip to content

Commit

Permalink
fix: allow some field to be null for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu1etboy committed Nov 3, 2023
1 parent d7d8b2d commit 788d070
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class Restaurant {
private String contactInfo;
private String image;

@Positive
@Max(5)
// @Positive
// @Max(5)
private double rating;

private Boolean isDelivery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public class RestaurantRequest {

private String image;

@Size(min = 3, max = 20)
// @Size(min = 3, max = 20)
private int minPrice;
@Size(min = 3, max = 20)
// @Size(min = 3, max = 20)
private int maxPrice;
private Boolean isDelivery;
private Boolean isWalkIn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public RabbitMQPublisher(RabbitTemplate rabbitTemplate) {
}

public void publishJson(String exchange, String routingKey, Restaurant restaurant) {
System.out.println("Message sent -> " + restaurant.toString());
// System.out.println("Message sent -> " + restaurant.toString());
rabbitTemplate.convertAndSend(exchange, routingKey, restaurant);
}

Expand Down

0 comments on commit 788d070

Please sign in to comment.