Type Alias JsonPatch

type JsonPatch = {
    from?: string;
    op: "add" | "remove" | "replace" | "move" | "copy" | "test";
    path: string;
    value?: unknown;
}
Index

Properties

Properties

from?: string

A JSON Pointer path pointing to the location to move/copy from.

op: "add" | "remove" | "replace" | "move" | "copy" | "test"

The operation to be performed.

path: string

A JSON pointer to the property being affected.

value?: unknown

The value to add, replace or test.