LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://api.metro.net/docs
0 stars 3 forks source link

Fix direction_id parameter validation #510

Closed albertkun closed 5 months ago

albertkun commented 5 months ago

This pull request fixes the validation of the direction_id parameter in the route_details_endpoint function. The direction_id parameter is now expected to be an integer between 0 and 1. This ensures that only valid direction IDs are accepted.