{"id":15410025,"url":"https://github.com/aarnott/validation","last_synced_at":"2025-04-11T09:33:24.056Z","repository":{"id":4674157,"uuid":"5820529","full_name":"AArnott/Validation","owner":"AArnott","description":"Method input validation and runtime checks that report errors or throw exceptions when failures are detected.","archived":false,"fork":false,"pushed_at":"2025-03-20T02:29:05.000Z","size":4808,"stargazers_count":136,"open_issues_count":9,"forks_count":22,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-03T23:07:57.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://aarnott.github.io/Validation/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ms-pl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AArnott.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2012-09-15T13:49:05.000Z","updated_at":"2025-03-14T15:12:38.000Z","dependencies_parsed_at":"2025-01-16T12:13:40.281Z","dependency_job_id":"f107eb5a-fdd1-4a21-b2c3-9c8eafb86a42","html_url":"https://github.com/AArnott/Validation","commit_stats":{"total_commits":672,"total_committers":18,"mean_commits":"37.333333333333336","dds":0.5342261904761905,"last_synced_commit":"d6e35a4d52438fd1933049078c709b2265f76ef7"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FValidation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FValidation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FValidation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FValidation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AArnott","download_url":"https://codeload.github.com/AArnott/Validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248368359,"owners_count":21092343,"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":[],"created_at":"2024-10-01T16:42:23.595Z","updated_at":"2025-04-11T09:33:24.039Z","avatar_url":"https://github.com/AArnott.png","language":"C#","readme":"Validation\n==========\n\n*Method input validation and runtime checks that report errors or throw\nexceptions when failures are detected.*\n\n[![NuGet package](https://img.shields.io/nuget/v/Validation.svg)](https://nuget.org/packages/Validation)\n[![🏭 Build](https://github.com/AArnott/Validation/actions/workflows/build.yml/badge.svg)](https://github.com/AArnott/Validation/actions/workflows/build.yml)\n[![codecov](https://codecov.io/gh/AArnott/Validation/branch/main/graph/badge.svg)](https://codecov.io/gh/AArnott/Validation)\n\nThis project is available as the [Validation][1] NuGet package.\n\n[Check out our full documentation](https://aarnott.github.io/Validation).\n\nBasic input validation via the `Requires` class throws an ArgumentException.\n\n```cs\nRequires.NotNull(arg1);\nRequires.NotNullOrEmpty(arg2);\n```\n\nState validation via the `Verify` class throws an InvalidOperationException.\n\n```csharp\nVerify.Operation(condition, \"some error occurred.\");\n```\n\nInternal integrity checks via the `Assumes` class throws an\nInternalErrorException.\n\n```csharp\nAssumes.True(condition, \"some error\");\n```\n\nWarning signs that should not throw exceptions via the `Report` class.\n\n```csharp\nReport.IfNot(condition, \"some error\");\n```\n\n[1]: http://nuget.org/packages/Validation \"Validation NuGet package\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarnott%2Fvalidation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faarnott%2Fvalidation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faarnott%2Fvalidation/lists"}