feat: [CODE-3803]: add desc for swagger (#3755)

* Update types/repo.go
* feat: [CODE-3803]: add desc for swagger
* feat: [CODE-3803]: add desc for swagger
This commit is contained in:
Abhinav Singh 2025-05-01 20:17:14 +00:00 committed by Harness
parent 4f7dc32dcc
commit 5aef4f53f8
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import (
// GeneralSettings represent the general repository settings as exposed externally.
type GeneralSettings struct {
FileSizeLimit *int64 `json:"file_size_limit" yaml:"file_size_limit"`
FileSizeLimit *int64 `json:"file_size_limit" yaml:"file_size_limit" description:"file size limit in bytes"`
GitLFSEnabled *bool `json:"git_lfs_enabled" yaml:"git_lfs_enabled"`
}

View File

@ -48,7 +48,7 @@ type Repository struct {
LastGITPush int64 `json:"last_git_push" yaml:"last_git_push"`
// Size of the repository in KiB.
Size int64 `json:"size" yaml:"size"`
Size int64 `json:"size" yaml:"size" description:"size of the repository in KiB"`
// SizeUpdated is the time when the Size was last updated.
SizeUpdated int64 `json:"size_updated" yaml:"size_updated"`