Skip to content

Commit

Permalink
Use Kratos for validation (#102)
Browse files Browse the repository at this point in the history
* Use kratos validation for lookup.proto

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Attempt validation for CreateTuples request

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Move validation code to service

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Add validation code for Read & Delete tuples

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Add required constraints

Signed-off-by: Jonathan Marcantonio <[email protected]>

* Move LookupSubjects logging to internal/service

Signed-off-by: Jonathan Marcantonio <[email protected]>

---------

Signed-off-by: Jonathan Marcantonio <[email protected]>
  • Loading branch information
lennysgarage authored Jun 19, 2024
1 parent a77c3bb commit 0184893
Show file tree
Hide file tree
Showing 32 changed files with 3,246 additions and 304 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ 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)

.PHONY: build
Expand Down
2 changes: 1 addition & 1 deletion 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 0184893

Please sign in to comment.