{"id":26245638,"url":"https://github.com/rudeigerc/go-grpc-protovalidate","last_synced_at":"2025-08-03T11:04:13.180Z","repository":{"id":257783217,"uuid":"859346402","full_name":"rudeigerc/go-grpc-protovalidate","owner":"rudeigerc","description":"A gRPC Go middleware for validating messages via bufbuild/protovalidate following Google's API Improvement Proposals AIP-193","archived":false,"fork":false,"pushed_at":"2024-09-18T14:10:23.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T12:38:55.872Z","etag":null,"topics":["go-grpc","go-grpc-middleware","protobuf","protovalidate"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/rudeigerc/go-grpc-protovalidate","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudeigerc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-18T14:05:02.000Z","updated_at":"2024-09-19T07:50:44.000Z","dependencies_parsed_at":"2024-09-20T06:42:19.602Z","dependency_job_id":null,"html_url":"https://github.com/rudeigerc/go-grpc-protovalidate","commit_stats":null,"previous_names":["rudeigerc/go-grpc-protovalidate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rudeigerc/go-grpc-protovalidate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudeigerc%2Fgo-grpc-protovalidate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudeigerc%2Fgo-grpc-protovalidate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudeigerc%2Fgo-grpc-protovalidate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudeigerc%2Fgo-grpc-protovalidate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudeigerc","download_url":"https://codeload.github.com/rudeigerc/go-grpc-protovalidate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudeigerc%2Fgo-grpc-protovalidate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268531912,"owners_count":24265250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go-grpc","go-grpc-middleware","protobuf","protovalidate"],"created_at":"2025-03-13T12:37:40.722Z","updated_at":"2025-08-03T11:04:13.112Z","avatar_url":"https://github.com/rudeigerc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-grpc-protovalidate\n\n\u003e [!CAUTION]\n\u003e WORK IN PROGRESS\n\nA [gRPC Go](https://github.com/grpc/grpc-go) middleware for validating messages via [bufbuild/protovalidate](https://github.com/bufbuild/protovalidate) following Google's API Improvement Proposals [AIP-193](https://google.aip.dev/193).\n\n## Installation\n\n```shell\ngo get github.com/rudeigerc/go-grpc-protovalidate\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/bufbuild/protovalidate-go\"\n\tgo_grpc_protovalidate \"github.com/rudeigerc/go-grpc-protovalidate\"\n\t\"google.golang.org/grpc\"\n)\n\nfunc main() {\n\tvalidator, err := protovalidate.New()\n\tif err != nil {\n\t\tlog.Fatalf(\"failed to create validator: %v\", err)\n\t}\n\n\ts := grpc.NewServer(\n\t\tgrpc.ChainUnaryInterceptor(\n\t\t\tgo_grpc_protovalidate.UnaryServerInterceptor(go_grpc_protovalidate.WithValidator(validator)),\n\t\t),\n\t\tgrpc.ChainStreamInterceptor(\n\t\t\tgo_grpc_protovalidate.StreamServerInterceptor(go_grpc_protovalidate.WithValidator(validator)),\n\t\t),\n\t)\n}\n```\n\n## References\n\n- [bufbuild/protovalidate](https://github.com/bufbuild/protovalidate)\n- [grpc-ecosystem/go-grpc-middleware/interceptors/protovalidate](https://github.com/grpc-ecosystem/go-grpc-middleware/tree/main/interceptors/protovalidate)\n- [Errors  |  Cloud API Design Guide  |  Google Cloud](https://cloud.google.com/apis/design/errors)\n- [AIP-193: Errors](https://google.aip.dev/193)\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudeigerc%2Fgo-grpc-protovalidate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudeigerc%2Fgo-grpc-protovalidate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudeigerc%2Fgo-grpc-protovalidate/lists"}