{"id":13526423,"url":"https://github.com/bufbuild/protovalidate","last_synced_at":"2026-02-06T14:30:16.610Z","repository":{"id":169804370,"uuid":"645494923","full_name":"bufbuild/protovalidate","owner":"bufbuild","description":"Protocol Buffer Validation - Go, Java, Python, C++ and JS/TS","archived":false,"fork":false,"pushed_at":"2026-01-22T15:41:17.000Z","size":2668,"stargazers_count":1398,"open_issues_count":27,"forks_count":56,"subscribers_count":15,"default_branch":"main","last_synced_at":"2026-01-31T14:41:16.191Z","etag":null,"topics":["cc","cel","common-expression-language","cpp","ecmascript","golang","java","javascript","protobuf","protocol-buffers","typescript","validation"],"latest_commit_sha":null,"homepage":"https://protovalidate.com","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/bufbuild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-25T19:32:20.000Z","updated_at":"2026-01-31T11:14:49.000Z","dependencies_parsed_at":"2023-11-30T21:24:52.346Z","dependency_job_id":"185bdcd4-af25-4b1a-aa3e-69cecc161386","html_url":"https://github.com/bufbuild/protovalidate","commit_stats":null,"previous_names":["bufbuild/protovalidate"],"tags_count":148,"template":false,"template_full_name":null,"purl":"pkg:github/bufbuild/protovalidate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Fprotovalidate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Fprotovalidate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Fprotovalidate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Fprotovalidate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bufbuild","download_url":"https://codeload.github.com/bufbuild/protovalidate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bufbuild%2Fprotovalidate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cc","cel","common-expression-language","cpp","ecmascript","golang","java","javascript","protobuf","protocol-buffers","typescript","validation"],"created_at":"2024-08-01T06:01:29.513Z","updated_at":"2026-02-06T14:30:16.601Z","avatar_url":"https://github.com/bufbuild.png","language":"Go","readme":"![The Buf logo](https://raw.githubusercontent.com/bufbuild/protovalidate/main/.github/buf-logo.svg)\n\n# Protovalidate\n\n[![CI](https://github.com/bufbuild/protovalidate/actions/workflows/ci.yaml/badge.svg?branch=main)][ci]\n[![Slack](https://img.shields.io/badge/Slack-Buf-%23e01563)][slack]\n[![BSR](https://img.shields.io/badge/BSR-Module-0C65EC)][buf-mod]\n\n[Protovalidate][protovalidate] is the semantic validation library for Protobuf. It provides standard annotations to validate common rules on messages and fields, as well as the ability to use [CEL][cel] to write custom rules. It's the next generation of [protoc-gen-validate][protoc-gen-validate].\n\nWith Protovalidate, you can annotate your Protobuf messages with both standard and custom validation rules:\n\n```protobuf\nsyntax = \"proto3\";\n\npackage acme.user.v1;\n\nimport \"buf/validate/validate.proto\";\n\nmessage User {\n  string id = 1 [(buf.validate.field).string.uuid = true];\n  uint32 age = 2 [(buf.validate.field).uint32.lte = 150]; // We can only hope.\n  string email = 3 [(buf.validate.field).string.email = true];\n  string first_name = 4 [(buf.validate.field).string.max_len = 64];\n  string last_name = 5 [(buf.validate.field).string.max_len = 64];\n\n  option (buf.validate.message).cel = {\n    id: \"first_name_requires_last_name\"\n    message: \"last_name must be present if first_name is present\"\n    expression: \"!has(this.first_name) || has(this.last_name)\"\n  };\n}\n```\n\n## Supported languages\n\nTo start using Protovalidate in your projects, see the [developer quickstart][quickstart], [Protovalidate overview][protovalidate-overview], or go directly to the repository for your language of choice:\n\n- [`protovalidate-go`][pv-go] (Go)\n- [`protovalidate-java`][pv-java] (Java)\n- [`protovalidate-python`][pv-python] (Python)\n- [`protovalidate-cc`][pv-cc] (C++)\n- [`protovalidate-es`][pv-es] (TypeScript and JavaScript)\n\n## Documentation\n\nComprehensive documentation for Protovalidate is available at [protovalidate.com][protovalidate].\n\nHighlights include:\n\n* The [developer quickstart][quickstart]\n* Comprehensive RPC quickstarts for [Connect and Go][connect-go], [gRPC and Go][grpc-go], [gRPC and Java][grpc-java], and [gRPC and Python][grpc-python]\n* A [migration guide for protoc-gen-validate][migration-guide] users\n\n## Contributing\n\nWe genuinely appreciate any help! If you'd like to contribute, check out these resources:\n\n- [Contributing Guidelines][contributing]: Guidelines to make your contribution process straightforward and meaningful\n- [Conformance testing utilities](https://github.com/bufbuild/protovalidate/tree/main/docs/conformance.md): Utilities providing acceptance testing of `protovalidate` implementations\n\n## Legal\n\nOffered under the [Apache 2 license][license].\n\n[buf]: https://buf.build\n[cel]: https://cel.dev\n\n[pv-go]: https://github.com/bufbuild/protovalidate-go\n[pv-java]: https://github.com/bufbuild/protovalidate-java\n[pv-python]: https://github.com/bufbuild/protovalidate-python\n[pv-cc]: https://github.com/bufbuild/protovalidate-cc\n[pv-es]: https://github.com/bufbuild/protovalidate-es\n\n[buf-mod]: https://buf.build/bufbuild/protovalidate\n[slack]: https://buf.build/links/slack\n[license]: LICENSE\n[contributing]: .github/CONTRIBUTING.md\n\n[protoc-gen-validate]: https://github.com/bufbuild/protoc-gen-validate\n[conformance]: https://github.com/bufbuild/protovalidate/blob/main/docs/conformance.md\n[ci]: https://github.com/bufbuild/protovalidate/actions/workflows/ci.yaml\n\n[protovalidate]: https://protovalidate.com/\n[protovalidate-overview]: https://protovalidate.com/about/\n[quickstart]: https://protovalidate.com/quickstart/\n[connect-go]: https://protovalidate.com/quickstart/connect-go/\n[grpc-go]: https://protovalidate.com/quickstart/grpc-go/\n[grpc-java]: https://protovalidate.com/quickstart/grpc-java/\n[grpc-python]: https://protovalidate.com/quickstart/grpc-python/\n[migration-guide]: https://protovalidate.com/migration-guides/migrate-from-protoc-gen-validate/\n","funding_links":[],"categories":["Go","Protocol Buffers"],"sub_categories":["Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufbuild%2Fprotovalidate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbufbuild%2Fprotovalidate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbufbuild%2Fprotovalidate/lists"}