Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.

This commit is contained in:
StellaOps Bot
2025-12-26 21:54:17 +02:00
parent 335ff7da16
commit c2b9cd8d1f
3717 changed files with 264714 additions and 48202 deletions

View File

@@ -2,8 +2,8 @@ using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using StellaOps.Auth.Abstractions;
using StellaOps.Policy.Engine.Services;
using StellaOps.Policy.Storage.Postgres.Models;
using StellaOps.Policy.Storage.Postgres.Repositories;
using StellaOps.Policy.Persistence.Postgres.Models;
using StellaOps.Policy.Persistence.Postgres.Repositories;
namespace StellaOps.Policy.Engine.Endpoints;

View File

@@ -64,9 +64,8 @@ internal static class RiskProfileSchemaEndpoints
}
var schema = RiskProfileSchemaProvider.GetSchema();
var jsonText = profileDocument.GetRawText();
var result = schema.Evaluate(System.Text.Json.Nodes.JsonNode.Parse(jsonText));
var result = schema.Evaluate(profileDocument);
var issues = new List<RiskProfileValidationIssue>();
if (!result.IsValid)
@@ -89,9 +88,9 @@ internal static class RiskProfileSchemaEndpoints
{
foreach (var (key, message) in results.Errors)
{
var instancePath = results.InstanceLocation?.ToString() ?? path;
var instancePath = results.InstanceLocation.ToString();
issues.Add(new RiskProfileValidationIssue(
Path: instancePath,
Path: string.IsNullOrEmpty(instancePath) ? path : instancePath,
Error: key,
Message: message));
}
@@ -103,7 +102,8 @@ internal static class RiskProfileSchemaEndpoints
{
if (!detail.IsValid)
{
CollectValidationIssues(detail, issues, detail.InstanceLocation?.ToString() ?? path);
var detailPath = detail.InstanceLocation.ToString();
CollectValidationIssues(detail, issues, string.IsNullOrEmpty(detailPath) ? path : detailPath);
}
}
}

View File

@@ -2,8 +2,8 @@ using Microsoft.AspNetCore.Http.HttpResults;
using Microsoft.AspNetCore.Mvc;
using StellaOps.Auth.Abstractions;
using StellaOps.Policy.Engine.Services;
using StellaOps.Policy.Storage.Postgres.Models;
using StellaOps.Policy.Storage.Postgres.Repositories;
using StellaOps.Policy.Persistence.Postgres.Models;
using StellaOps.Policy.Persistence.Postgres.Repositories;
namespace StellaOps.Policy.Engine.Endpoints;