Skip to main content

Settings with a generated contract

Valiant Settings turns strongly typed configuration models into deterministic schemas. Use the same generated metadata for Options binding, validation, documentation, tooling, or the built-in ASP.NET Core settings explorer—without reflection-based assembly scanning.

using Valiant.Settings;

[ValiantSettings("Payments", configure: true)]
public sealed record PaymentSettings
{
public Uri? Endpoint { get; init; }

[ValiantSecret]
public string? ApiKey { get; init; }
}

One declaration, several uses

CapabilityResult
SchemaModel, property, nesting, collection, default, nullability, required, and secret metadata
OptionsGenerated section-aware Configure<TSettings> registration on opt-in models
ValidationIValidateOptions<TSettings> backed by a generated Valiant validator
UIBuilt-in schema explorer and JSON endpoint with safe secret masking
ToolingIValiantSettingsSchemaProvider for custom consumers

Documentation map

The sample catalog covers every selectable core and ASP.NET Core scenario for schema metadata, binding, validation, and the safe-by-default UI.