more audit work

This commit is contained in:
master
2026-01-08 10:21:51 +02:00
parent 43c02081ef
commit 51cf4bc16c
546 changed files with 36721 additions and 4003 deletions

View File

@@ -12,11 +12,11 @@ public static class RiskProfileSchemaProvider
private static string? _cachedSchemaText;
private static string? _cachedETag;
private static readonly Lazy<JsonSchema> Schema = new(() => JsonSchema.FromText(GetSchemaText()));
public static JsonSchema GetSchema()
{
var schemaText = GetSchemaText();
return JsonSchema.FromText(schemaText);
return Schema.Value;
}
/// <summary>

View File

@@ -25,6 +25,10 @@ public sealed class RiskProfileValidator
}
using var document = JsonDocument.Parse(json);
return _schema.Evaluate(document.RootElement);
var options = new EvaluationOptions
{
OutputFormat = OutputFormat.List
};
return _schema.Evaluate(document.RootElement, options);
}
}