Skip to content

Commit

Permalink
fix: suppress empty legs property in routing JSON responses
Browse files Browse the repository at this point in the history
  • Loading branch information
takb committed Oct 27, 2023
1 parent 35a6d2e commit ebd8e1d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public class JSONIndividualRouteResponse extends JSONBasedIndividualRouteRespons

@Schema(description = "List containing the legs the route consists of.")
@JsonProperty("legs")
@JsonInclude()
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private final List<JSONLeg> legs;

private final Map<String, JSONExtra> extras;

@Schema(description = "Departure date and time",
Expand Down

0 comments on commit ebd8e1d

Please sign in to comment.