-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Labels
good first issueGood for newcomers to the codebaseGood for newcomers to the codebase
Description
Summary
The OpenAPI conformance test is failing for the schedule-for-route endpoint because the response is missing a Stops field that the spec requires.
FAIL: TestOpenAPIConformance_StaticEndpoints/schedule-for-route
Error: Schema violation - property "stops" is missing from schedule-for-route response
What needs to change
- Model (
internal/models/schedule_for_route.go): Add aStopsfield to theScheduleForRouteEntrystruct - Handler (
internal/restapi/schedule_for_route_handler.go): Populate the stops list in the response, collecting all stops referenced by the route's schedule
Existing pattern to follow
The stops_for_route_handler.go (lines ~146-199) already builds a stop list for a route — the same pattern of collecting stop IDs, querying them, and converting to model objects applies here.
Acceptance criteria
-
ScheduleForRouteEntryincludes aStopsfield with proper JSON tag - The handler populates stops from the route's schedule data
-
TestOpenAPIConformance_StaticEndpoints/schedule-for-routepasses - Existing tests in
schedule_for_route_handler_test.gocontinue to pass -
make testpasses -
make lintpasses
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomers to the codebaseGood for newcomers to the codebase