Skip to content

Commit

Permalink
Merge pull request #156 from kcl-lang/chore-bump-kcl-openapi-version-…
Browse files Browse the repository at this point in the history
…and-keep-order

chore: bump kcl-openapi deps to v0.10.0 and use the keep-order feature
  • Loading branch information
Peefy authored Nov 4, 2024
2 parents 8ad02d7 + 58627f5 commit b096ad3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
kcl-lang.io/kcl-go v0.10.7
kcl-lang.io/kcl-openapi v0.9.0
kcl-lang.io/kcl-openapi v0.10.0
kcl-lang.io/kcl-plugin v0.6.0
kcl-lang.io/kpm v0.10.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1694,8 +1694,8 @@ k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kcl-lang.io/kcl-go v0.10.7 h1:vHJH7SP+K7pXIF9sCyLTXR9IayREho+aSnW3FoFGn9U=
kcl-lang.io/kcl-go v0.10.7/go.mod h1:+4RGmGNsAhVcMSIot+OJcP9jmH/mUcnlTe0U0ULdsdI=
kcl-lang.io/kcl-openapi v0.9.0 h1:HUnc5pUGde83PI5CAe1ZvZhdbcxD9X2ABUp1tV+oYqw=
kcl-lang.io/kcl-openapi v0.9.0/go.mod h1:kGCf0AZygrZyB+xpmMtiC3FYoiV/1rCLXuAq2QtuLf8=
kcl-lang.io/kcl-openapi v0.10.0 h1:yetZMSnn/HHaMcfiLt1P2zhCF06O33jxkjtHrm08VR8=
kcl-lang.io/kcl-openapi v0.10.0/go.mod h1:kGCf0AZygrZyB+xpmMtiC3FYoiV/1rCLXuAq2QtuLf8=
kcl-lang.io/kcl-plugin v0.6.0 h1:rBdoqKDPdOtojeOHCFnXoB/I7ltFjV61r0KkfOcL5sE=
kcl-lang.io/kcl-plugin v0.6.0/go.mod h1:LoIouleHYRKAvFcdW30yUlhsMYH2W9zD5Ji1XHfbht4=
kcl-lang.io/kpm v0.10.0 h1:VnsJ5IS8YSvgXYnItLdaJp/1tTrSSmThzmNCWmhm5Bg=
Expand Down
1 change: 1 addition & 0 deletions pkg/options/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (o *ImportOptions) Run() error {
case Crd, OpenAPI:
for _, p := range files {
opts := new(generator.GenOpts)
opts.KeepOrder = true
// Convert CLI options to generator.GenOpts
opts.Spec = p
if o.Output != "" {
Expand Down

0 comments on commit b096ad3

Please sign in to comment.