{"id":37204957,"url":"https://github.com/siberia-projects/siberia-validation","last_synced_at":"2026-01-14T23:37:19.962Z","repository":{"id":218383891,"uuid":"746244311","full_name":"siberia-projects/siberia-validation","owner":"siberia-projects","description":"Siberia-validation is a library for a simple and convenient validation a passed value  It's pretty easy to use and extend if you need a custom validation logic","archived":false,"fork":false,"pushed_at":"2024-02-13T12:32:49.000Z","size":33,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T18:54:12.821Z","etag":null,"topics":["customizable","easy-to-use","framework","go","siberia","validation"],"latest_commit_sha":null,"homepage":"","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/siberia-projects.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}},"created_at":"2024-01-21T13:59:55.000Z","updated_at":"2024-01-21T16:39:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"73ecc466-0968-424f-bc09-36e7263e0193","html_url":"https://github.com/siberia-projects/siberia-validation","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"d12f6783c0650223937fd7a7126b23cb6b1b5154"},"previous_names":["siberia-projects/siberia-validation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/siberia-projects/siberia-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siberia-projects","download_url":"https://codeload.github.com/siberia-projects/siberia-validation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberia-projects%2Fsiberia-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["customizable","easy-to-use","framework","go","siberia","validation"],"created_at":"2026-01-14T23:37:19.207Z","updated_at":"2026-01-14T23:37:19.952Z","avatar_url":"https://github.com/siberia-projects.png","language":"Go","readme":"Siberia Validation\n=================\n\n[![Author](https://img.shields.io/badge/author-@siberia_projects-green.svg)](https://github.com/siberia-projects)\n[![Source Code](https://img.shields.io/badge/source-siberia/main-blue.svg)](https://github.com/siberia-projects/siberia-validation)\n\n## What is it?\nSiberia-validation is a library for a simple and convenient validation a passed value\n\nIt's pretty easy to use and extend if you need a custom validation logic\n\n## How to download?\n\n```console\njohn@doe-pc:~$ go get github.com/siberia-projects/siberia-validation\n```\n\n## How to use?\nTo use it you have to do the following: \n - Create all necessary **ConstraintValidator(s)**\n - Create a **SimpleConstraintValidatorRegistry**\n - Put them into the **SimpleConstraintValidatorRegistry**\n - Create a **SimpleValidator** with passing the registry\n - Execute a method **Validate()** with passing a value you want to validate\nand all needed **Constraint(s)**\n\nFor your convenience the **NewSimpleConstraintValidatorRegistryWithDefaultValidators** exists\n\nIf a value is invalid you will have a **ConstraintViolationError** which holds every violation error inside itself\n\n## Examples\n```go\npackage main\n\nimport (\n\t\"github.com/siberia-projects/siberia-validation/pkg/validation\"\n)\n\nfunc main() {\n\tregistry := validation.NewSimpleConstraintValidatorRegistryWithDefaultValidators()\n\tvalidator := validation.NewSimpleValidator(registry)\n\n\terr := validator.Validate(\"valid_value\", []validation.Constraint{\n\t\t\u0026validation.NotNil{},\n\t\t\u0026validation.NotBlank{},\n\t})\n\n\tif err != nil {\n\t\tprintln(err.Error())\n\t\treturn\n\t}\n\n\tprintln(\"Everything is valid!\")\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiberia-projects%2Fsiberia-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberia-projects%2Fsiberia-validation/lists"}