Skip to content

Commit

Permalink
Merge pull request #510 from LACMTA:2023-api-optimization
Browse files Browse the repository at this point in the history
Fix direction_id parameter validation
  • Loading branch information
albertkun authored Mar 15, 2024
2 parents 1afd67b + aaaf7fd commit df6dd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async def get_trip_departure_times(
async def route_details_endpoint(
agency_id: str,
route_code: str,
direction_id: DirectionId = Query(...),
direction_id: int = Query(..., ge=0, le=1),
day_type: DayType = Query(...),
time: str = Query(...),
num_results: int = Query(3, ge=1),
Expand Down

0 comments on commit df6dd39

Please sign in to comment.