{"id":22938406,"url":"https://github.com/jacraig/valkyrie","last_synced_at":"2025-08-12T18:33:19.044Z","repository":{"id":65413651,"uuid":"80057563","full_name":"JaCraig/Valkyrie","owner":"JaCraig","description":"Valkyrie is a validation library for .Net.","archived":false,"fork":false,"pushed_at":"2024-10-30T00:05:35.000Z","size":18109,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T02:44:37.417Z","etag":null,"topics":["validation-library"],"latest_commit_sha":null,"homepage":"https://jacraig.github.io/Valkyrie/","language":"C#","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/JaCraig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2017-01-25T21:02:05.000Z","updated_at":"2024-10-30T00:05:38.000Z","dependencies_parsed_at":"2023-10-17T05:16:45.274Z","dependency_job_id":"987daf80-7bb8-4927-b879-7b4fad3ba58f","html_url":"https://github.com/JaCraig/Valkyrie","commit_stats":null,"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FValkyrie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FValkyrie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FValkyrie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JaCraig%2FValkyrie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JaCraig","download_url":"https://codeload.github.com/JaCraig/Valkyrie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229700190,"owners_count":18109931,"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":["validation-library"],"created_at":"2024-12-14T12:17:50.614Z","updated_at":"2024-12-14T12:17:51.205Z","avatar_url":"https://github.com/JaCraig.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Valkyrie\n\n[![.NET Publish](https://github.com/JaCraig/Valkyrie/actions/workflows/dotnet-publish.yml/badge.svg)](https://github.com/JaCraig/Valkyrie/actions/workflows/dotnet-publish.yml)\n\nValkyrie is a simple set of data annotations and extension methods to help with validating your objects in .NET.\n\n## Basic Usage\n\nFor the most part, Valkyrie consists of DataAnnotations. To use Valkyrie, simply add the annotations to your properties as shown below:\n\n```csharp\npublic class MyClass\n{\n    [Cascade]\n    public MyOtherClass ItemA { get; set; }\n\t\n    [Between(\"1/1/1900\", \"1/1/2100\")]\n    public DateTime ItemB { get; set; }\n\t\n    [Contains(\"A\")]\n    public List\u003cstring\u003e ItemC { get; set; }\n}\n```\n\nThe `System.ComponentModel.DataAnnotations.Validator` class will automatically pick up these annotations when validating your object. Additionally, there are a couple of extension methods added to simplify object validation:\n\n```csharp\nvar results = new List\u003cValidationResult\u003e();\nbool didItWork = MyObject.TryValidate(results);\n```\n\nAnd:\n\n```csharp\nMyObject.Validate();\n```\n\nThe `TryValidate` method returns a list of validation results, while the `Validate` method throws a `ValidationException` if there are any issues with validating your object.\n\n## Installation\n\nThe library is available on NuGet with the package name \"Valkyrie.\" To install it, run the following command in the Package Manager Console:\n\n```\nInstall-Package Valkyrie\n```\n\n## Build Process\n\nTo build the library, make sure you have the following minimum requirements:\n\n- Visual Studio 2022\n\nSimply clone the project and load the solution in Visual Studio. You should be able to build it without much effort.\n\n## Contributing\n\nWe welcome contributions to Valkyrie. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. We appreciate your support!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Fvalkyrie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacraig%2Fvalkyrie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacraig%2Fvalkyrie/lists"}