SchemaForge.Crucible
0.0.4
dotnet add package SchemaForge.Crucible --version 0.0.4
NuGet\Install-Package SchemaForge.Crucible -Version 0.0.4
<PackageReference Include="SchemaForge.Crucible" Version="0.0.4" />
paket add SchemaForge.Crucible --version 0.0.4
#r "nuget: SchemaForge.Crucible, 0.0.4"
// Install SchemaForge.Crucible as a Cake Addin
#addin nuget:?package=SchemaForge.Crucible&version=0.0.4
// Install SchemaForge.Crucible as a Cake Tool
#tool nuget:?package=SchemaForge.Crucible&version=0.0.4
Crucible is the primary consumable library of the SchemaForge ecosystem. It exposes Schema creation and validation.
Schemas are objects used to define the structure and rules of a collection file. They hold lists of fields, each of which defines the type of data the field must contain and all of the rules a field must follow in order to be considered valid.
The goal is to centralize all validation for incoming web requests or configuration files, providing an easy-to-use interface that generates helpful and specific error messages that can be passed along to end users interacting with a service that incorporates Crucible.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.1)
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Alpha 0.0.4:
[NEW FEATURES]
Added support for .NET 6.0.
Added new methods to Schema class: RemoveAllFields, ClearErrors, GetFieldEnumerator
Added new parameter to Schema.Validate method: infoOnMissingOptional. If set to true, adds an Info severity warning about all missing optional fields.
----------
Alpha 0.0.3:
[BREAKING CHANGES]
Renamed ConfigToken to Field.
Renamed Error to SchemaError.
[NEW FEATURES]
Added DictionaryTranslator for Dictionary objects and ClassTranslator for .NET classes that use property names as field names. Added overload to ApplySchema that allows different Schemas to be applied to sub-objects depending on a designated "type" of the sub-object.
Added support for .NET Core 3.1.
----------
Alpha 0.0.2-b- Fixed various XML documentation issues and included XML documentation in Nuget package.
----------
Alpha 0.0.1- initial release. Includes Schema objects, JObjectTranslator for applying Schema objects to Json, ConfigToken objects to define fields, Constraint objects to define rules that the values of fields must follow, and Error objects to contain information about issues found during Schema validation.