Table of Contents

Class RuleViolationProblemDetail

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

JSON shape used for rule violations in ProblemDetails extensions.

public sealed record RuleViolationProblemDetail : IEquatable<RuleViolationProblemDetail>
Inheritance
RuleViolationProblemDetail
Implements
Inherited Members
Extension Methods

Constructors

RuleViolationProblemDetail(string, string?, string[])

JSON shape used for rule violations in ProblemDetails extensions.

public RuleViolationProblemDetail(string Code, string? Detail, string[] Fields)

Parameters

Code string
Detail string
Fields string[]

Properties

Code

public string Code { get; init; }

Property Value

string

Detail

public string? Detail { get; init; }

Property Value

string

Fields

public string[] Fields { get; init; }

Property Value

string[]