Skip to content

Commit

Permalink
DT-786 review comments addressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
preetamnpr committed Mar 22, 2024
1 parent f509d3c commit f9be44b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ private static Consumer<MultiAttributeValidator> allDg(Consumer<MultiAttributeVa
var issues = new LinkedHashSet<String>();
var bookingStatus = body.path("bookingStatus").asText("");
if (CONFIRMED_BOOKING_STATES.contains(BookingState.fromWireName(bookingStatus))) {
if (body.get("confirmedEquipments") == null) {
if (body.path("confirmedEquipments").isEmpty()) {
issues.add("confirmedEquipments for confirmed booking is not present");
}
if (body.get("transportPlan") == null) {
if (body.path("transportPlan").isEmpty()) {
issues.add("transportPlan for confirmed booking is not present");
}
if (body.get("shipmentCutOffTimes") == null) {
if (body.path("shipmentCutOffTimes").isEmpty()) {
issues.add("shipmentCutOffTimes for confirmed booking is not present");
}
}
Expand Down

0 comments on commit f9be44b

Please sign in to comment.