Skip to content

Commit

Permalink
add summary.v5 schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Roukoswarf committed Feb 26, 2025
1 parent ed0d289 commit 5ea68af
Show file tree
Hide file tree
Showing 73 changed files with 1,858 additions and 2,508 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ TOOLS_BIN = tools/bin
NPM_BIN = node_modules/.bin

OAPI_CODEGEN = $(TOOLS_BIN)/oapi-codegen
SWAGGER_CLI = $(NPM_BIN)/swagger-cli
REDOCLY_CLI = $(NPM_BIN)/redocly

NPM_PKG_SPECS = \
@apidevtools/swagger-cli@^4.0.4
@redocly/cli@latest

ifeq ($(CI),)
GO_BUILD_FLAGS =
Expand All @@ -31,16 +31,16 @@ test-cover:

.PHONY: generate
# Generates client api
generate: $(SWAGGER_CLI) $(OAPI_CODEGEN)
$(SWAGGER_CLI) bundle ../TidepoolApi/reference/summary.v1.yaml -o ./spec/summary.v1.yaml -t yaml
generate: $(REDOCLY_CLI) $(OAPI_CODEGEN)
$(REDOCLY_CLI) bundle ../TidepoolApi/reference/summary.v1.yaml -o ./spec/summary.v1.yaml
$(OAPI_CODEGEN) -package=api -generate=types spec/summary.v1.yaml > clients/summary/types.go
$(OAPI_CODEGEN) -package=api -generate=client spec/summary.v1.yaml > clients/summary/client.go
cd clients/summary && go generate ./...

$(OAPI_CODEGEN):
GOBIN=$(shell pwd)/$(TOOLS_BIN) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.3.0
GOBIN=$(shell pwd)/$(TOOLS_BIN) go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1

$(SWAGGER_CLI): npm-tools
$(REDOCLY_CLI): npm-tools

.PHONY: npm-tools
npm-tools:
Expand Down
4 changes: 2 additions & 2 deletions clients/summary/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

790 changes: 158 additions & 632 deletions clients/summary/types.go

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/tidepool-org/go-common

go 1.22
go 1.24.0

require (
github.com/IBM/sarama v1.43.2
github.com/IBM/sarama v1.45.0
github.com/avast/retry-go v3.0.0+incompatible
github.com/cloudevents/sdk-go/protocol/kafka_sarama/v2 v2.15.2
github.com/cloudevents/sdk-go/v2 v2.15.2
Expand All @@ -16,11 +16,11 @@ require (
require (
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/eapache/go-resiliency v1.6.0 // indirect
github.com/eapache/go-resiliency v1.7.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand All @@ -31,17 +31,17 @@ require (
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/xdg/stringprep v1.0.3 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/crypto v0.35.0 // indirect
golang.org/x/net v0.35.0 // indirect
golang.org/x/text v0.22.0 // indirect
)
111 changes: 22 additions & 89 deletions go.sum

Large diffs are not rendered by default.

Loading

0 comments on commit 5ea68af

Please sign in to comment.