{"id":51784656,"url":"https://github.com/faustbrian/go-validation","last_synced_at":"2026-07-20T16:31:15.074Z","repository":{"id":371797489,"uuid":"1302467367","full_name":"faustbrian/go-validation","owner":"faustbrian","description":"Typed, deterministic, transport-neutral validation for Go applications.","archived":false,"fork":false,"pushed_at":"2026-07-17T02:04:56.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-17T03:07:44.076Z","etag":null,"topics":["api","data-validation","go","golang","http","json-api","json-rpc","security","validation","validator"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faustbrian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security.md","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":"2026-07-16T07:28:31.000Z","updated_at":"2026-07-17T02:05:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/faustbrian/go-validation","commit_stats":null,"previous_names":["faustbrian/go-validation"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/faustbrian/go-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustbrian%2Fgo-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustbrian%2Fgo-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustbrian%2Fgo-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustbrian%2Fgo-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustbrian","download_url":"https://codeload.github.com/faustbrian/go-validation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustbrian%2Fgo-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35693381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"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":["api","data-validation","go","golang","http","json-api","json-rpc","security","validation","validator"],"created_at":"2026-07-20T16:31:14.093Z","updated_at":"2026-07-20T16:31:15.068Z","avatar_url":"https://github.com/faustbrian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-validation\n\n`go-validation` is a typed, transport-neutral validation package for Go 1.26\nand later. Ordinary functions and `Validator[T]` are the primary API. Reports\nretain stable paths and rule codes without retaining rejected values.\n\n## Five-minute quickstart\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tvalidation \"github.com/faustbrian/go-validation\"\n\t\"github.com/faustbrian/go-validation/rules\"\n)\n\nfunc main() {\n\tctx, _ := validation.NewContext(validation.DefaultLimits())\n\tvalidator := validation.All(validation.CollectAll,\n\t\trules.RuneLength(3, 40),\n\t\trules.Prefix(\"usr_\"),\n\t)\n\treport := validator.Validate(ctx.WithPath(validation.Field(\"username\")), \"x\")\n\tfor _, violation := range report.Violations() {\n\t\tfmt.Println(violation.Path(), violation.Code())\n\t}\n\t// Output:\n\t// username rune_length\n\t// username prefix\n}\n```\n\nUse `validation.Value[T]` when input presence matters:\n\n```go\nmissing := validation.Missing[string]()\nnull := validation.Null[string]()\nempty := validation.Present(\"\")\n_ = []validation.Value[string]{missing, null, empty}\n```\n\nCore validators never perform I/O. Use `AsyncValidator[T]` and `AsyncAll` for\ncontext-aware external checks. Reflection is optional and isolated in\n`structplan`; typed plans require no tags or registry.\n\n## Documentation\n\n- [Documentation index](docs/README.md)\n- [API and packages](docs/api.md)\n- [Rule catalog](docs/rules.md)\n- [Normative semantics](docs/semantics.md)\n- [Guides](docs/guides.md)\n- [Security model](docs/security.md)\n- [Hardening evidence](docs/hardening-report.md)\n- [Laravel and cline/struct adoption](docs/adoption.md)\n- [Compatibility](docs/compatibility.md)\n\n## Local verification\n\n```sh\nmake check\n```\n\nEvery blocking CI command has a local Make target. `make nilaway` is advisory.\nHosted CI is a release integrator's final external verification step, not a\nprerequisite for local development.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustbrian%2Fgo-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustbrian%2Fgo-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustbrian%2Fgo-validation/lists"}