6e59bf0f
api: advertise an empty scope list, not null
core-go serves the second argument of WithSchema verbatim at /query/api-meta.json, so a nil slice reaches the wire as `"scopes": null`. meta.sr.ht discovers every *.sr.ht service at import time and iterates that field when rendering /oauth2/personal-token, so the null turned the whole instance's personal-token page into a 500 — no token could be minted at all while spec.sr.ht was up. The other custom services answer 404 there and are skipped, which is why only this one broke it. Empty is the accurate value: the service is owner-only and defines no AccessScope enum to grant against.
Eugene Blikh <bigbes@gmail.com> — 2026-08-10 08:23:12 UTC
Commit 6e59bf0ffc7d16f509dad40063d35bf8f6fb98a7 —
view raw patch
Parent(s):
cb60d4f7
| File | Status | + | − |
|---|---|---|---|
cmd/specsrht/main.go
|
M | +8 | -1 |