Skip to content

Commit f975e68

Browse files
authored
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.
1 parent f51c187 commit f975e68

File tree

26 files changed

+540
-1973
lines changed

26 files changed

+540
-1973
lines changed

cmd/publisher/commands/init.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,7 @@ func createServerJSON(
309309
URL: repoURL,
310310
Source: repoSource,
311311
},
312-
VersionDetail: model.VersionDetail{
313-
Version: version,
314-
},
312+
Version: version,
315313
Packages: []model.Package{pkg},
316314
}
317315
}

0 commit comments

Comments
 (0)