Clean up schema by simplifying version structure (#379)
## Summary Simplified the schema structure by: - Replacing `version_detail.version` with direct `version` field - Removing unused `release_date` field from seed data - Updating all API types, models, and tests to match new structure - Maintaining backwards compatibility in API responses This change makes the schema more intuitive and reduces nesting depth.
This commit is contained in:
parent
f51c187e52
commit
f975e68cf2
1 changed files with 540 additions and 1973 deletions
|
|
@ -12,7 +12,6 @@ type RegistryExtensions struct {
|
|||
PublishedAt time.Time `json:"published_at"`
|
||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||
IsLatest bool `json:"is_latest"`
|
||||
ReleaseDate string `json:"release_date"`
|
||||
}
|
||||
|
||||
// ServerListResponse represents the paginated server list response
|
||||
|
|
@ -34,7 +33,7 @@ type ServerJSON struct {
|
|||
Description string `json:"description" minLength:"1" maxLength:"100"`
|
||||
Status model.Status `json:"status,omitempty" minLength:"1"`
|
||||
Repository model.Repository `json:"repository,omitempty"`
|
||||
VersionDetail model.VersionDetail `json:"version_detail"`
|
||||
Version string `json:"version"`
|
||||
Packages []model.Package `json:"packages,omitempty"`
|
||||
Remotes []model.Transport `json:"remotes,omitempty"`
|
||||
Meta *ServerMeta `json:"_meta,omitempty"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue