forgejo/services
ThomasBoom89 6cac7702e9 fix(api): encode empty requested reviewers as an empty array (#7355)
- Always initialize `RequestedReviewers` and `RequestedReviewersTeams`, this avoids the JSON encoder from encoding it to the zero value `null` and instead return a empty array.
- Resolves #4108
- Integration test added.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7355
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: ThomasBoom89 <thomasboom89@noreply.codeberg.org>
Co-committed-by: ThomasBoom89 <thomasboom89@noreply.codeberg.org>
2025-03-28 11:50:05 +00:00
..
actions chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
agit chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
asymkey chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
attachment chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
auth chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
automerge chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
context chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
contexttest chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
convert fix(api): encode empty requested reviewers as an empty array (#7355) 2025-03-28 11:50:05 +00:00
cron chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
doctor chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
externalaccount chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
f3 chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
federation chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
feed chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
forgejo chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
forms chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
gitdiff chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
indexer chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mailer chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
markup chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
migrations chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mirror chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notify chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
packages chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
release chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
remote chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repository chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
secrets chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
shared/automerge chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
task chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
uinotification chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webhook chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
wiki chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00