Skip to content

Commit 8c53577

Browse files
committed
Migrate publisher to use pkg.VersionDetail
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent e18e0c6 commit 8c53577

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/publisher/main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const (
2929

3030
// Server structure types for JSON generation
3131

32-
type VersionDetail struct {
33-
Version string `json:"version"`
34-
}
3532

3633
type EnvironmentVariable struct {
3734
Name string `json:"name"`
@@ -65,7 +62,7 @@ type ServerJSON struct {
6562
Description string `json:"description"`
6663
Status string `json:"status,omitempty"`
6764
Repository model.Repository `json:"repository"`
68-
VersionDetail VersionDetail `json:"version_detail"`
65+
VersionDetail model.VersionDetail `json:"version_detail"`
6966
Packages []Package `json:"packages"`
7067
}
7168

@@ -580,7 +577,7 @@ func createServerStructure(
580577
URL: repoURL,
581578
Source: repoSource,
582579
},
583-
VersionDetail: VersionDetail{
580+
VersionDetail: model.VersionDetail{
584581
Version: version,
585582
},
586583
Packages: []Package{pkg},

0 commit comments

Comments
 (0)