{"id":26127261,"url":"https://github.com/nsat/validatron","last_synced_at":"2025-10-30T05:40:54.079Z","repository":{"id":46125124,"uuid":"313945144","full_name":"nsat/validatron","owner":"nsat","description":"Rust data structure validation library designed for large user inputs","archived":false,"fork":false,"pushed_at":"2023-08-30T18:11:29.000Z","size":80,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T07:48:02.720Z","etag":null,"topics":["proc-macro","rust","serde","validation"],"latest_commit_sha":null,"homepage":"https://github.com/nsat/validatron","language":"Rust","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/nsat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-18T13:35:36.000Z","updated_at":"2022-10-13T18:33:30.000Z","dependencies_parsed_at":"2025-03-10T18:07:53.478Z","dependency_job_id":"f3211925-6c98-4d5d-8d6d-46f8ce15ac84","html_url":"https://github.com/nsat/validatron","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsat%2Fvalidatron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsat%2Fvalidatron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsat%2Fvalidatron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsat%2Fvalidatron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsat","download_url":"https://codeload.github.com/nsat/validatron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248332128,"owners_count":21086034,"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":["proc-macro","rust","serde","validation"],"created_at":"2025-03-10T18:07:48.468Z","updated_at":"2025-10-30T05:40:49.043Z","avatar_url":"https://github.com/nsat.png","language":"Rust","readme":"# Validatron [![Build Status]][actions] [![Docs]][docs.rs] [![Latest Version]][crates.io]\n\n\n[Build Status]: https://img.shields.io/github/workflow/status/nsat/validatron/Rust/master\n[actions]: https://github.com/nsat/validatron/actions?query=branch%3Amaster\n[Docs]: https://docs.rs/validatron/badge.svg\n[docs.rs]: https://docs.rs/validatron/\n[Latest Version]: https://img.shields.io/crates/v/validatron.svg\n[crates.io]: https://crates.io/crates/validatron\n\n\n**Validatron is a data structure validation library for Rust that is designed for performing\nextensive integrity checks on user supplied data prior to use.**\n\nIt is heavily inspired by the [keats/validator][1] crate but with different design choices:\n\n- do not fail fast, return as many errors as possible\n- return a serializable error type\n- provide easily extendable validators\n\n## Example\n\n(Check the [examples](/validatron/examples) directory for additional examples.)\n\n```rust\nuse validatron::Validate;\n\n#[derive(Debug, Validate)]\nstruct MyStruct {\n    #[validatron(min = 42)]\n    a: i64,\n    #[validatron(max_len = 5)]\n    b: Vec\u003cu32\u003e,\n}\n\nfn main() {\n    let good = MyStruct {\n        a: 666,\n        b: vec![],\n    };\n\n    assert!(good.validate().is_ok());\n\n    let bad = MyStruct {\n        a: 1,\n        b: vec![42; 25],\n    };\n\n    let result = bad.validate();\n    assert!(result.is_err());\n\n    println!(\"{:#?}\", result);\n}\n```\n\n## License\n\n`validatron` is licensed under the MIT license; see the [LICENSE](./LICENSE) file for more details.\n\n[1]: https://github.com/Keats/validator\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsat%2Fvalidatron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsat%2Fvalidatron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsat%2Fvalidatron/lists"}