{"id":15012356,"url":"https://github.com/microsoft/vs-validation","last_synced_at":"2025-05-15T02:09:00.706Z","repository":{"id":11786277,"uuid":"70063898","full_name":"microsoft/vs-validation","owner":"microsoft","description":"Common input and integrity validation routines for Visual Studio and other applications","archived":false,"fork":false,"pushed_at":"2025-05-14T15:29:55.000Z","size":2539,"stargazers_count":116,"open_issues_count":11,"forks_count":29,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-15T00:08:54.740Z","etag":null,"topics":["dotnet","netstandard","nuget","validation"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-05T13:37:49.000Z","updated_at":"2025-04-04T02:05:03.000Z","dependencies_parsed_at":"2024-02-27T22:32:47.129Z","dependency_job_id":"f3214f04-a1fa-48b1-9d53-075a3697b2ae","html_url":"https://github.com/microsoft/vs-validation","commit_stats":{"total_commits":1369,"total_committers":35,"mean_commits":"39.114285714285714","dds":0.7143900657414171,"last_synced_commit":"b8a845b5c226ce066567dbaa9db7ef01c3b52900"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/vs-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254032,"owners_count":22039792,"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":["dotnet","netstandard","nuget","validation"],"created_at":"2024-09-24T19:42:31.221Z","updated_at":"2025-05-15T02:08:55.678Z","avatar_url":"https://github.com/microsoft.png","language":"C#","readme":"Microsoft.VisualStudio.Validation\n=================================\n\n[![NuGet package](https://img.shields.io/nuget/v/Microsoft.VisualStudio.Validation.svg)](https://www.nuget.org/packages/Microsoft.VisualStudio.Validation)\n[![Build Status](https://dev.azure.com/azure-public/vside/_apis/build/status/vs-validation?branchName=main)](https://dev.azure.com/azure-public/vside/_build/latest?definitionId=11\u0026branchName=main)\n[![codecov](https://codecov.io/gh/Microsoft/vs-validation/branch/main/graph/badge.svg)](https://codecov.io/gh/Microsoft/vs-validation)\n\nThis project is available as the [Microsoft.VisualStudio.Validation][1] NuGet package.\n\nBasic input validation via the `Requires` class throws an ArgumentException.\n\n```csharp\nRequires.NotNull(arg1, nameof(arg1));\nRequires.NotNullOrEmpty(arg2, nameof(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://www.nuget.org/packages/Microsoft.VisualStudio.Validation \"Microsoft.VisualStudio.Validation NuGet package\"\n","funding_links":[],"categories":["dotnet"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvs-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fvs-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvs-validation/lists"}