{"id":26364941,"url":"https://github.com/jjosh102/obaki.datachecker","last_synced_at":"2025-06-13T18:32:34.843Z","repository":{"id":165098104,"uuid":"624808878","full_name":"jjosh102/Obaki.DataChecker","owner":"jjosh102","description":"Obaki.DataChecker is a flexible library that simplifies data validation for JSON and XML inputs. Use customized rules to verify data accuracy and reliability with ease.","archived":false,"fork":false,"pushed_at":"2024-01-20T09:49:52.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-23T13:47:50.499Z","etag":null,"topics":["csharp","csharp-library","show"],"latest_commit_sha":null,"homepage":"","language":"C#","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/jjosh102.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2023-04-07T10:00:59.000Z","updated_at":"2023-05-24T05:59:08.000Z","dependencies_parsed_at":"2024-01-20T10:38:53.340Z","dependency_job_id":"3fa9f990-954f-4ac9-acdd-41743fa36cc5","html_url":"https://github.com/jjosh102/Obaki.DataChecker","commit_stats":null,"previous_names":["joshjlp/obaki.datachecker","jjosh102/obaki.datachecker"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2FObaki.DataChecker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2FObaki.DataChecker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2FObaki.DataChecker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjosh102%2FObaki.DataChecker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjosh102","download_url":"https://codeload.github.com/jjosh102/Obaki.DataChecker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243919304,"owners_count":20368865,"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":["csharp","csharp-library","show"],"created_at":"2025-03-16T19:28:46.510Z","updated_at":"2025-03-16T19:28:47.062Z","avatar_url":"https://github.com/jjosh102.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obaki.DataChecker\n[![NuGet](https://img.shields.io/nuget/v/Obaki.DataChecker.svg)](https://www.nuget.org/packages/Obaki.DataChecker)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/Obaki.DataChecker?logo=nuget)](https://www.nuget.org/packages/Obaki.DataChecker)\n\nObaki.DataChecker is a library that provides flexible validation of JSON and XML inputs through customizable rules, while allowing for custom validations using [FluentValidation](https://github.com/FluentValidation/FluentValidation).\n\n## Installing\n\nTo install the package add the following line inside your csproj file with the latest version.\n\n```\n\u003cPackageReference Include=\"Obaki.DataChecker\" Version=\"x.x.x\" /\u003e\n```\n\nAn alternative is to install via the .NET CLI with the following command:\n\n```\ndotnet add package Obaki.DataChecker\n```\n\nFor more information you can check the [nuget package](https://www.nuget.org/packages/Obaki.LocalStorageCache).\n\n## Setup\nRegister the needed services in your Program.cs file as **Scoped**\n\n```c#\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddDataCheckerAsScoped();\n}\n``` \n\nOr as **Singleton**\n\n```c#\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddDataCheckerAsSingleton();\n}\n```\n## Usage \n**Asynchronous(Non-Blocking)**\n```c#\nusing FluentValidation.Results;\nusing FluentValidation;\nusing Obaki.DataChecker;\n\n\npublic class TestAsync {\n    private readonly IXmlDataChecker\u003cTestObject\u003e _xmlDataChecker;\n\n    public TestAsync(IXmlDataChecker\u003cTestObject\u003e xmlDataChecker) \n    {\n          _xmlDataChecker = xmlDataChecker;\n    }\n\n   public async Task\u003cValidationResult\u003e ValidateTestObject(string xmlInput)\n   {\n\n          return await _xmlDataChecker.ValidateXmlDataFromStringAsync(xmlInput);\n   }\n}\n```\n**Synchronous(Blocking)**\n```c#\nusing FluentValidation.Results;\nusing FluentValidation;\nusing Obaki.DataChecker;\n\n\npublic class TestSync {\n   private readonly IXmlDataChecker\u003cTestObject\u003e _xmlDataChecker;\n\n    public TestAsync(IXmlDataChecker\u003cTestObject\u003e xmlDataChecker) \n    {\n          _xmlDataChecker = xmlDataChecker;\n    }\n\n   public ValidationResult ValidateTestObject(string xmlInput)\n   {\n\n          return  _xmlDataChecker.ValidateXmlDataFromString(xmlInput);\n   }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjosh102%2Fobaki.datachecker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjosh102%2Fobaki.datachecker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjosh102%2Fobaki.datachecker/lists"}