diff --git a/CHANGELOG.md b/CHANGELOG.md index 25496cab8e..4d84752d56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,10 @@ This changelog goes through the changes that have been made in each release without substantial changes to our git log; to see the highlights of what has been added to each release, please refer to the [blog](https://blog.gitea.com). -## [1.24.3](https://github.com/go-gitea/gitea/releases/tag/1.24.3) - 2025-07-06 +## [1.24.3](https://github.com/go-gitea/gitea/releases/tag/1.24.3) - 2025-07-10 * BUGFIXES + * Fix API response for swagger spec (#35029) * Start automerge check again after the conflict check and the schedule (#34988) (#35002) * Fix the response format for actions/workflows (#35009) (#35016) * Fix repo settings and protocol log problems (#35012) (#35013) diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 5f74357adc..5da2ad09bd 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -57,7 +57,7 @@ type Repository struct { Private bool `json:"private"` Fork bool `json:"fork"` Template bool `json:"template"` - Parent *Repository `json:"parent"` + Parent *Repository `json:"parent,omitempty"` Mirror bool `json:"mirror"` Size int `json:"size"` Language string `json:"language"` @@ -112,7 +112,7 @@ type Repository struct { ObjectFormatName string `json:"object_format_name"` // swagger:strfmt date-time MirrorUpdated time.Time `json:"mirror_updated,omitempty"` - RepoTransfer *RepoTransfer `json:"repo_transfer"` + RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"` Topics []string `json:"topics"` Licenses []string `json:"licenses"` } diff --git a/services/convert/repository.go b/services/convert/repository.go index 7dfdfd2179..f0718d9123 100644 --- a/services/convert/repository.go +++ b/services/convert/repository.go @@ -245,7 +245,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR RepoTransfer: transfer, Topics: util.SliceNilAsEmpty(repo.Topics), ObjectFormatName: repo.ObjectFormatName, - Licenses: repoLicenses.StringList(), + Licenses: util.SliceNilAsEmpty(repoLicenses.StringList()), } }