forgejo/services/convert
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
..
activity.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
attachment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
convert.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git_commit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
git_commit_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_comment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mirror.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
package.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull.go fix(api): encode empty requested reviewers as an empty array (#7355) 2025-03-28 11:50:05 +00:00
pull_review.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
quota.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
release.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
release_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repository.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
status.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
utils.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
utils_test.go [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00
wiki.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00