Rate-limit 429 body omits references.situations
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with rate_limit_middleware.go and inspect how it builds the 429 response body, then read models.NewEmptyReferences() and the OpenAPI Reference schema to confirm the required lists. Update the body construction to use the empty references model and check that the response includes all six lists, including situations.
Written by the indexing model from the issue text.
Description
rate_limit_middleware.go builds its 429 body by hand. Its references object has no situations key, but the OpenAPI Reference schema requires all six lists, so a strict client can fail to decode the response.
Building the body from models.NewEmptyReferences() would keep it in step with every other response. Found while reviewing #2123.
- Dominant language
- Go
- Stars
- 57
- Forks
- 113
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 151
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OneBusAway/maglev
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OneBusAway/maglev#2145 ·
Maintainers usually reply within 2 days
-
Sort routeIds in the remaining stop pathsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OneBusAway/maglev#2144 ·
Maintainers usually reply within 2 days
-
Rename the stop_routes CTE in stops_rtree.goPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
OneBusAway/maglev#2142 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
OneBusAway/maglev#2140 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
OneBusAway/maglev#2139 ·
Maintainers usually reply within 2 days
All issues in OneBusAway/maglev
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
fluxcd/notification-controller#1441 ·
Maintainers usually reply within 1 day
-
priority/medium status/ready type/chore
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
discobox-ai/discobox#1357 ·
Maintainers usually reply within 1 day
-
TestPseudoLocaleRemote fails now and then: it types the code before the laptop asks for itPossibly taken @fzn0x claimed this today. Openbug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
edit_file diff rendering panics on invalid UTF-8 textPossibly taken @TDnorthgarden claimed this today. Openarea/tui
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
docker/docker-agent#4955 ·
Maintainers usually reply within 1 day
-
enhancement ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jbigler/railswitch#243 ·
Maintainers usually reply within 1 day