Table of Contents

Enum EnumJsonPatchOp

Namespace
Vintagestory.ServerMods.NoObf
Assembly
VSEssentials.dll

A set of operations that define what a patch will do. See https://datatracker.ietf.org/doc/html/rfc6902#section-4.1 for more information on each operation type.

public enum EnumJsonPatchOp

Fields

Add = 0

Add an element to a json property at a specific path. Please consider using AddMerge for improved mod compatability.

AddEach = 1

Add a set of objects to an array. Will not work if used on other data types.

Remove = 2

Remove a json property at a specific path. Does not require a value to be set.

Replace = 3

Replaces a json property with one of a different value. Identical to a remove and then add.

Copy = 4

Copies a json property from one place and adds it to another. Requires the FromPath property.

Move = 5

Removes a json property from one place and adds it to another. Identical to removing from one place and adding it to another. Requires the FromPath property.

AddMerge = 6

Add merge is similar to Add, however if the target is an array, then the current value and patched value will merge together for improved compatibility.