Skip to content

Commit ca5480d

Browse files
jianzhangbjzci-robot
authored andcommitted
fix: add OpenAPIModelName for all PackageManifest related types (#3765)
Upstream-repository: operator-lifecycle-manager Upstream-commit: 674bf3f3547e8d8b56c230c5f0df7b5e8be9a3bd
1 parent 811919f commit ca5480d

4 files changed

Lines changed: 312 additions & 222 deletions

File tree

staging/operator-lifecycle-manager/pkg/package-server/apis/operators/v1/model_name.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,48 @@ func (PackageManifest) OpenAPIModelName() string {
2929
func (PackageManifestList) OpenAPIModelName() string {
3030
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.PackageManifestList"
3131
}
32+
33+
// OpenAPIModelName returns the OpenAPI model name for this type.
34+
func (PackageManifestSpec) OpenAPIModelName() string {
35+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.PackageManifestSpec"
36+
}
37+
38+
// OpenAPIModelName returns the OpenAPI model name for this type.
39+
func (PackageManifestStatus) OpenAPIModelName() string {
40+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.PackageManifestStatus"
41+
}
42+
43+
// OpenAPIModelName returns the OpenAPI model name for this type.
44+
func (PackageChannel) OpenAPIModelName() string {
45+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.PackageChannel"
46+
}
47+
48+
// OpenAPIModelName returns the OpenAPI model name for this type.
49+
func (ChannelEntry) OpenAPIModelName() string {
50+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.ChannelEntry"
51+
}
52+
53+
// OpenAPIModelName returns the OpenAPI model name for this type.
54+
func (CSVDescription) OpenAPIModelName() string {
55+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.CSVDescription"
56+
}
57+
58+
// OpenAPIModelName returns the OpenAPI model name for this type.
59+
func (AppLink) OpenAPIModelName() string {
60+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.AppLink"
61+
}
62+
63+
// OpenAPIModelName returns the OpenAPI model name for this type.
64+
func (Maintainer) OpenAPIModelName() string {
65+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.Maintainer"
66+
}
67+
68+
// OpenAPIModelName returns the OpenAPI model name for this type.
69+
func (Icon) OpenAPIModelName() string {
70+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.Icon"
71+
}
72+
73+
// OpenAPIModelName returns the OpenAPI model name for this type.
74+
func (Deprecation) OpenAPIModelName() string {
75+
return "com.github.operator-framework.operator-lifecycle-manager.pkg.package-server.apis.operators.v1.Deprecation"
76+
}

0 commit comments

Comments
 (0)