.NET API
StructuredResponseValidationResult
Tracon.Abstractions.dllThe outcome of a structured response validation check.
public sealed record StructuredResponseValidationResult : IEquatable<StructuredResponseValidationResult>Inheritance
Section titled “Inheritance”object ← StructuredResponseValidationResult
Implements
Section titled “Implements”IEquatable<StructuredResponseValidationResult>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Section titled “Properties”IsValid
Section titled “ IsValid”Gets whether the response is valid.
public bool IsValid { get; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”Gets the reason written to the run record when the response is rejected. null when StructuredResponseValidationResult.IsValid is true.
public string? Reason { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This text becomes part of a persistent run event and, through the run’s error message, can reach an external response. It must never carry the response text itself — a rejected response’s record is permanent, and the reason is meant to say why the response was rejected, not repeat what it said.
A result accepting the response.
public static StructuredResponseValidationResult Valid { get; }Property Value
Section titled “Property Value”StructuredResponseValidationResult
Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(StructuredResponseValidationResult?)
Section titled “ Equals(StructuredResponseValidationResult?)”public bool Equals(StructuredResponseValidationResult? other)Parameters
Section titled “Parameters”other StructuredResponseValidationResult?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”Invalid(string)
Section titled “ Invalid(string)”Creates a result that rejects the response.
public static StructuredResponseValidationResult Invalid(string reason)Parameters
Section titled “Parameters”reason string
The reason written to the run record. Must not carry the response text.
Returns
Section titled “Returns”StructuredResponseValidationResult
A rejecting result.
Exceptions
Section titled “Exceptions”reason is empty or whitespace.
ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(StructuredResponseValidationResult?, StructuredResponseValidationResult?)
Section titled “ operator ==(StructuredResponseValidationResult?, StructuredResponseValidationResult?)”public static bool operator ==(StructuredResponseValidationResult? left, StructuredResponseValidationResult? right)Parameters
Section titled “Parameters”left StructuredResponseValidationResult?
right StructuredResponseValidationResult?
Returns
Section titled “Returns”operator !=(StructuredResponseValidationResult?, StructuredResponseValidationResult?)
Section titled “ operator !=(StructuredResponseValidationResult?, StructuredResponseValidationResult?)”public static bool operator !=(StructuredResponseValidationResult? left, StructuredResponseValidationResult? right)Parameters
Section titled “Parameters”left StructuredResponseValidationResult?
right StructuredResponseValidationResult?