Class JsonShapeMismatch

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll
public sealed record JsonShapeMismatch : IEquatable<JsonShapeMismatch>
Inheritance
JsonShapeMismatch
Implements
Inherited Members
Extension Methods

Constructors

JsonShapeMismatch(string, string, object?, object?)

public JsonShapeMismatch(string PropertyPath, string Reason, object? Expected, object? Actual)

Parameters

PropertyPath string
Reason string
Expected object
Actual object

Properties

Actual

public object? Actual { get; init; }

Property Value

object

Expected

public object? Expected { get; init; }

Property Value

object

PropertyPath

public string PropertyPath { get; init; }

Property Value

string

Reason

public string Reason { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.