// Copyright (c) The Geekeey Authors // SPDX-License-Identifier: EUPL-1.2 namespace Geekeey.Request.Validation; /// /// Represents a validation problem identified during a request validation process. /// public record Problem { /// /// The name of the property. /// public required string PropertyName { get; init; } /// /// Custom severity level associated with the failure. /// public Severity Severity { get; init; } = Severity.Error; /// /// The error message /// public required string Message { get; init; } /// /// Gets or sets the error code. /// public string? Code { get; init; } /// /// The property value that caused the failure. /// public object? AttemptedValue { get; init; } }