mirror of
https://github.com/go-gitea/gitea
synced 2025-07-25 11:48:37 +00:00
Fix API response for swagger spec (#35029)
Co-authored-by: Scion <scion@studiowhy.net>
This commit is contained in:
@@ -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
|
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).
|
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
|
* BUGFIXES
|
||||||
|
* Fix API response for swagger spec (#35029)
|
||||||
* Start automerge check again after the conflict check and the schedule (#34988) (#35002)
|
* Start automerge check again after the conflict check and the schedule (#34988) (#35002)
|
||||||
* Fix the response format for actions/workflows (#35009) (#35016)
|
* Fix the response format for actions/workflows (#35009) (#35016)
|
||||||
* Fix repo settings and protocol log problems (#35012) (#35013)
|
* Fix repo settings and protocol log problems (#35012) (#35013)
|
||||||
|
@@ -57,7 +57,7 @@ type Repository struct {
|
|||||||
Private bool `json:"private"`
|
Private bool `json:"private"`
|
||||||
Fork bool `json:"fork"`
|
Fork bool `json:"fork"`
|
||||||
Template bool `json:"template"`
|
Template bool `json:"template"`
|
||||||
Parent *Repository `json:"parent"`
|
Parent *Repository `json:"parent,omitempty"`
|
||||||
Mirror bool `json:"mirror"`
|
Mirror bool `json:"mirror"`
|
||||||
Size int `json:"size"`
|
Size int `json:"size"`
|
||||||
Language string `json:"language"`
|
Language string `json:"language"`
|
||||||
@@ -112,7 +112,7 @@ type Repository struct {
|
|||||||
ObjectFormatName string `json:"object_format_name"`
|
ObjectFormatName string `json:"object_format_name"`
|
||||||
// swagger:strfmt date-time
|
// swagger:strfmt date-time
|
||||||
MirrorUpdated time.Time `json:"mirror_updated,omitempty"`
|
MirrorUpdated time.Time `json:"mirror_updated,omitempty"`
|
||||||
RepoTransfer *RepoTransfer `json:"repo_transfer"`
|
RepoTransfer *RepoTransfer `json:"repo_transfer,omitempty"`
|
||||||
Topics []string `json:"topics"`
|
Topics []string `json:"topics"`
|
||||||
Licenses []string `json:"licenses"`
|
Licenses []string `json:"licenses"`
|
||||||
}
|
}
|
||||||
|
@@ -245,7 +245,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
|
|||||||
RepoTransfer: transfer,
|
RepoTransfer: transfer,
|
||||||
Topics: util.SliceNilAsEmpty(repo.Topics),
|
Topics: util.SliceNilAsEmpty(repo.Topics),
|
||||||
ObjectFormatName: repo.ObjectFormatName,
|
ObjectFormatName: repo.ObjectFormatName,
|
||||||
Licenses: repoLicenses.StringList(),
|
Licenses: util.SliceNilAsEmpty(repoLicenses.StringList()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user