namespace JdeScoping.ConfigManager.Services;
///
/// Result of runtime configuration validation.
///
public class RuntimeValidationResult
{
///
/// Gets or sets the name of the validator that produced this result.
///
public string ValidatorName { get; init; } = "";
///
/// Gets whether validation passed (no errors).
///
public bool IsValid => Errors.Count == 0;
///
/// Gets the list of validation errors.
///
public List Errors { get; } = [];
///
/// Gets the list of validation warnings.
///
public List Warnings { get; } = [];
}
///
/// Service for validating runtime configuration using Infrastructure validators.
///
public interface IRuntimeConfigValidationService
{
///
/// Validates the configuration in the specified folder using Infrastructure validators.
///
/// Path to the configuration folder.
/// List of validation results from each validator.
List ValidateRuntimeConfig(string configFolderPath);
}