Table of Contents

Class JsonTransformRule

Namespace
Excalibur.EventSourcing.Upcasting
Assembly
Excalibur.EventSourcing.dll

A single JSON transformation rule that describes a property-level operation on a serialized event.

public sealed record JsonTransformRule : IEquatable<JsonTransformRule>
Inheritance
JsonTransformRule
Implements
Inherited Members

Constructors

JsonTransformRule(JsonTransformOperation, string, string?, object?)

A single JSON transformation rule that describes a property-level operation on a serialized event.

public JsonTransformRule(JsonTransformOperation Operation, string Path, string? TargetPath = null, object? DefaultValue = null)

Parameters

Operation JsonTransformOperation

The transformation operation to apply.

Path string

The source JSON property name.

TargetPath string

The target JSON property name (for rename and move operations).

DefaultValue object

The default value to set (for add default operations).

Properties

DefaultValue

The default value to set (for add default operations).

public object? DefaultValue { get; init; }

Property Value

object

Operation

The transformation operation to apply.

public JsonTransformOperation Operation { get; init; }

Property Value

JsonTransformOperation

Path

The source JSON property name.

public string Path { get; init; }

Property Value

string

TargetPath

The target JSON property name (for rename and move operations).

public string? TargetPath { get; init; }

Property Value

string