Skip to content

Commit b3c8d97

Browse files
author
viskumar
committed
Chore: Upgrade Go version and update kin openapi dependencies
1 parent 6964476 commit b3c8d97

File tree

3 files changed

+74
-18
lines changed

3 files changed

+74
-18
lines changed

apis/types/capability.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package types
1818

1919
import (
2020
"cuelang.org/go/cue"
21+
"github.com/getkin/kin-openapi/openapi3"
2122
)
2223

2324
// Source record the source of Capability
@@ -72,15 +73,15 @@ const (
7273

7374
// Parameter defines a parameter for cli from capability template
7475
type Parameter struct {
75-
Name string `json:"name"`
76-
Short string `json:"short,omitempty"`
77-
Required bool `json:"required,omitempty"`
78-
Default interface{} `json:"default,omitempty"`
79-
Usage string `json:"usage,omitempty"`
80-
Ignore bool `json:"ignore,omitempty"`
81-
Type cue.Kind `json:"type,omitempty"`
82-
Alias string `json:"alias,omitempty"`
83-
JSONType string `json:"jsonType,omitempty"`
76+
Name string `json:"name"`
77+
Short string `json:"short,omitempty"`
78+
Required bool `json:"required,omitempty"`
79+
Default interface{} `json:"default,omitempty"`
80+
Usage string `json:"usage,omitempty"`
81+
Ignore bool `json:"ignore,omitempty"`
82+
Type cue.Kind `json:"type,omitempty"`
83+
Alias string `json:"alias,omitempty"`
84+
JSONType *openapi3.Types `json:"jsonType,omitempty"`
8485
}
8586

8687
// Capability defines the content of a capability

go.mod

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
module github.com/oam-dev/kubevela-core-api
22

3-
go 1.19
3+
go 1.22.5
4+
5+
toolchain go1.24.2
46

57
require (
68
cuelang.org/go v0.5.0
79
github.com/Masterminds/semver v1.5.0
810
github.com/crossplane/crossplane-runtime v0.19.2
911
github.com/davecgh/go-spew v1.1.1
12+
github.com/getkin/kin-openapi v0.131.0
1013
github.com/google/go-cmp v0.5.9
1114
github.com/kubevela/pkg v1.9.2
1215
github.com/kubevela/workflow v0.6.1
@@ -15,7 +18,7 @@ require (
1518
github.com/onsi/ginkgo/v2 v2.9.5
1619
github.com/onsi/gomega v1.27.7
1720
github.com/pkg/errors v0.9.1
18-
github.com/stretchr/testify v1.8.3
21+
github.com/stretchr/testify v1.9.0
1922
k8s.io/api v0.27.2
2023
k8s.io/apimachinery v0.27.2
2124
k8s.io/client-go v0.27.2
@@ -45,9 +48,9 @@ require (
4548
github.com/fsnotify/fsnotify v1.6.0 // indirect
4649
github.com/go-logr/logr v1.2.4 // indirect
4750
github.com/go-logr/stdr v1.2.2 // indirect
48-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
51+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
4952
github.com/go-openapi/jsonreference v0.20.1 // indirect
50-
github.com/go-openapi/swag v0.22.3 // indirect
53+
github.com/go-openapi/swag v0.23.0 // indirect
5154
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
5255
github.com/gobuffalo/flect v0.3.0 // indirect
5356
github.com/gogo/protobuf v1.3.2 // indirect
@@ -72,10 +75,14 @@ require (
7275
github.com/mitchellh/mapstructure v1.5.0 // indirect
7376
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7477
github.com/modern-go/reflect2 v1.0.2 // indirect
78+
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
7579
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de // indirect
7680
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7781
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
82+
github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037 // indirect
83+
github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90 // indirect
7884
github.com/openshift/library-go v0.0.0-20230327085348-8477ec72b725 // indirect
85+
github.com/perimeterx/marshmallow v1.1.5 // indirect
7986
github.com/pmezard/go-difflib v1.0.0 // indirect
8087
github.com/prometheus/client_golang v1.15.1 // indirect
8188
github.com/prometheus/client_model v0.4.0 // indirect

0 commit comments

Comments
 (0)