{"id":24294410,"url":"https://github.com/miniscruff/vaddy","last_synced_at":"2025-03-06T06:15:53.127Z","repository":{"id":270276741,"uuid":"908031370","full_name":"miniscruff/vaddy","owner":"miniscruff","description":"Experimental validation library","archived":false,"fork":false,"pushed_at":"2025-02-08T08:49:34.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T09:32:13.139Z","etag":null,"topics":["go","golang","validation"],"latest_commit_sha":null,"homepage":"","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/miniscruff.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-24T23:32:26.000Z","updated_at":"2025-02-08T08:49:23.000Z","dependencies_parsed_at":"2024-12-30T00:17:30.844Z","dependency_job_id":"e6396dd5-d6c3-43be-8b9f-8ea0196b6b04","html_url":"https://github.com/miniscruff/vaddy","commit_stats":null,"previous_names":["miniscruff/vaddy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fvaddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fvaddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fvaddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fvaddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniscruff","download_url":"https://codeload.github.com/miniscruff/vaddy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157277,"owners_count":20081041,"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","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","golang","validation"],"created_at":"2025-01-16T17:39:25.092Z","updated_at":"2025-03-06T06:15:53.095Z","avatar_url":"https://github.com/miniscruff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vaddy\n\n[![Go Packge](https://img.shields.io/badge/Go-Reference-grey?style=for-the-badge\u0026logo=go\u0026logoColor=white\u0026label=%20\u0026labelColor=007D9C)](https://pkg.go.dev/github.com/miniscruff/vaddy)\n[![GitHub release](https://img.shields.io/github/v/release/miniscruff/vaddy?style=for-the-badge\u0026logo=github)](https://github.com/miniscruff/vaddy/releases)\n[![GitHub License](https://img.shields.io/github/license/miniscruff/vaddy?style=for-the-badge)](https://github.com/miniscruff/vaddy/blob/main/LICENSE)\n\nValidation library using type safe, developer friendly and extendible functions.\n\n\u003e [!WARNING]\n\u003e This library is strictly around validations, parsing or building is otherwise left\n\u003e up to you.\n\u003e Validations that would otherwise fail parsing, are not handled or expected to be supported.\n\n## Support\n\nCurrently experimental, valdiations will be added, changed or removed.\nNew validations may be added with `Exp` prefixes indicating they are still experimental.\n\n## Examples\n\n* [User](./example_user_test.go)\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tv \"github.com/miniscruff/vaddy\"\n)\n\ntype User struct {\n\tFirstName     string     `json:\"firstName\"`\n\tLastName      string     `json:\"lastName\"`\n\tAge           uint8      `json:\"age\"`\n}\n\nfunc main() {\n\tuser := \u0026User{\n\t\tFirstName:     \"Badger\",\n\t\tLastName:      \"Smith\",\n\t\tAge:           45,\n    }\n    err := v.Join(\n\t\tv.AllOf(u.FirstName, \"first_name\", v.StrMin(2), v.StrMax(64)),\n\t\tv.AllOf(u.LastName, \"last_name\", v.StrMin(2), v.StrMax(64)),\n\t\tv.AllOf(u.Age, \"age\", v.OrderedGte(uint8(0)), v.OrderedLte(uint8(130))),\n    )\n\n\tfmt.Printf(\"validating user:\\n%v\\n\", err)\n}\n```\n\n## Benchmarks\n\nComing soon\n\n\u003e [!NOTE]\n\u003e If you have a particularly large or complex validation requirement, please share.\n\n## Need help?\nUse the [discussions page](https://github.com/miniscruff/vaddy/discussions) for help requests and how-to questions.\n\nPlease open [GitHub issues](https://github.com/miniscruff/vaddy/issues) for bugs and feature requests.\nFile an issue before creating a pull request, unless it is something simple like a typo.\n\n## Want to Contribute?\nIf you want to contribute through code or documentation, the [Contributing guide](CONTRIBUTING.md) is the place to start.\nIf you need additional help create an issue or post on discussions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiscruff%2Fvaddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiscruff%2Fvaddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiscruff%2Fvaddy/lists"}