Skip to content

Commit

Permalink
Use kratos validation for lookup.proto
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Marcantonio <[email protected]>
  • Loading branch information
lennysgarage committed Jun 17, 2024
1 parent 791e3ba commit 4456604
Show file tree
Hide file tree
Showing 18 changed files with 3,156 additions and 164 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,22 @@ generate:
# generate all
all:
make api;
make validate;
make config;
make generate;


# generate validate proto
validate:
protoc --proto_path=./api \
--proto_path=./third_party \
--go_out=paths=source_relative:./api \
--go-http_out=paths=source_relative:./api \
--go-grpc_out=paths=source_relative:./api \
--openapi_out=fq_schema_naming=true,default_response=false:. \
--validate_out=paths=source_relative,lang=go:./api \
$(API_PROTO_FILES)

# run go linter with the repositories lint config
.PHONY: lint
lint:
Expand Down
12 changes: 6 additions & 6 deletions api/health/v1/health.pb.go

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

Loading

0 comments on commit 4456604

Please sign in to comment.