Skip to content

Commit f0793f2

Browse files
committed
update ogen
1 parent 37173ee commit f0793f2

8 files changed

+1371
-152
lines changed

gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package opentonapi
22

3-
//go:generate go run github.com/ogen-go/ogen/cmd/ogen -clean -no-client -package oas -target pkg/oas api/openapi.yml
3+
//go:generate go run github.com/ogen-go/ogen/cmd/ogen -clean -config ogen.yaml -package oas -target pkg/oas api/openapi.yml
44
//go:generate go run api/jsonify.go api/openapi.yml api/openapi.json

go.mod

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/tonkeeper/opentonapi
22

3-
go 1.20
3+
go 1.21.0
4+
5+
toolchain go1.22.0
46

57
require (
68
github.com/BurntSushi/toml v1.2.1
@@ -11,25 +13,25 @@ require (
1113
github.com/cespare/xxhash/v2 v2.1.2
1214
github.com/getsentry/sentry-go v0.24.1
1315
github.com/ghodss/yaml v1.0.0
14-
github.com/go-faster/errors v0.6.1
16+
github.com/go-faster/errors v0.7.1
1517
github.com/go-faster/jx v1.1.0
1618
github.com/gorilla/websocket v1.5.1
1719
github.com/labstack/gommon v0.4.0
1820
github.com/nicksnyder/go-i18n/v2 v2.2.1
19-
github.com/ogen-go/ogen v0.77.0
21+
github.com/ogen-go/ogen v1.0.0
2022
github.com/prometheus/client_golang v1.14.0
2123
github.com/puzpuzpuz/xsync/v2 v2.4.0
2224
github.com/shopspring/decimal v1.3.1
2325
github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29
2426
github.com/sourcegraph/conc v0.3.0
25-
github.com/stretchr/testify v1.8.4
27+
github.com/stretchr/testify v1.9.0
2628
github.com/tonkeeper/scam_backoffice_rules v0.0.0-20231229114100-e5f223eff6e0
2729
github.com/tonkeeper/tongo v1.4.3-0.20240111224308-6e99df0b7ea1
28-
go.opentelemetry.io/otel v1.19.0
29-
go.opentelemetry.io/otel/metric v1.19.0
30-
go.opentelemetry.io/otel/trace v1.19.0
30+
go.opentelemetry.io/otel v1.24.0
31+
go.opentelemetry.io/otel/metric v1.24.0
32+
go.opentelemetry.io/otel/trace v1.24.0
3133
go.uber.org/multierr v1.11.0
32-
go.uber.org/zap v1.26.0
34+
go.uber.org/zap v1.27.0
3335
golang.org/x/exp v0.0.0-20230725093048-515e97ebf090
3436
golang.org/x/text v0.14.0
3537
gopkg.in/yaml.v3 v3.0.1
@@ -38,13 +40,13 @@ require (
3840
require (
3941
github.com/beorn7/perks v1.0.1 // indirect
4042
github.com/davecgh/go-spew v1.1.1 // indirect
41-
github.com/dlclark/regexp2 v1.10.0 // indirect
42-
github.com/fatih/color v1.15.0 // indirect
43+
github.com/dlclark/regexp2 v1.11.0 // indirect
44+
github.com/fatih/color v1.16.0 // indirect
4345
github.com/go-faster/yaml v0.4.6 // indirect
44-
github.com/go-logr/logr v1.2.4 // indirect
46+
github.com/go-logr/logr v1.4.1 // indirect
4547
github.com/go-logr/stdr v1.2.2 // indirect
4648
github.com/golang/protobuf v1.5.2 // indirect
47-
github.com/google/uuid v1.4.0 // indirect
49+
github.com/google/uuid v1.6.0 // indirect
4850
github.com/mattn/go-colorable v0.1.13 // indirect
4951
github.com/mattn/go-isatty v0.0.20 // indirect
5052
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
@@ -58,12 +60,12 @@ require (
5860
github.com/snksoft/crc v1.1.0 // indirect
5961
github.com/valyala/bytebufferpool v1.0.0 // indirect
6062
github.com/valyala/fasttemplate v1.2.2 // indirect
61-
golang.org/x/crypto v0.17.0 // indirect
62-
golang.org/x/mod v0.13.0 // indirect
63-
golang.org/x/net v0.17.0 // indirect
64-
golang.org/x/sync v0.4.0 // indirect
65-
golang.org/x/sys v0.15.0 // indirect
66-
golang.org/x/tools v0.14.0 // indirect
63+
golang.org/x/crypto v0.21.0 // indirect
64+
golang.org/x/mod v0.16.0 // indirect
65+
golang.org/x/net v0.22.0 // indirect
66+
golang.org/x/sync v0.6.0 // indirect
67+
golang.org/x/sys v0.18.0 // indirect
68+
golang.org/x/tools v0.19.0 // indirect
6769
google.golang.org/protobuf v1.29.1 // indirect
6870
gopkg.in/yaml.v2 v2.4.0 // indirect
6971
)

go.sum

+44-36
Large diffs are not rendered by default.

ogen.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
parser:
2+
generator:
3+
features:
4+
enable:
5+
- paths/server
6+
disable:
7+
- server/response/validation
8+
- debug/example_tests
9+
- client/request/validation
10+
- paths/client
11+
- webhooks/client
12+
- webhooks/server

pkg/oas/oas_cfg_gen.go

+12-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)