# YamlPatchReport

What a JSON Patch or JSON Merge Patch changed in a document, as paths in the grammar YamlNode.Select reads, plus the findings the edits recorded, such as edits…

Class 

`OfficeIMO.Yaml`

**Namespace**

`OfficeIMO.Yaml`

**Assembly**

`OfficeIMO.Yaml`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[YamlPatchReport.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Model/YamlPatchReport.cs#L19)

**Modifiers**

sealed

What a JSON Patch or JSON Merge Patch changed in a document, as paths in the grammar [YamlNode.Select](/api/yaml/officeimo-yaml-yamlnode/) reads, plus the findings the edits recorded, such as edits of nodes that aliases share.

## Inheritance

- object
- YamlPatchReport

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [YamlDocument.ApplyJsonPatch](/api/yaml/officeimo-yaml-yamldocument/#method-applyjsonpatch-string)
- Method [YamlDocument.ApplyMergePatch](/api/yaml/officeimo-yaml-yamldocument/#method-applymergepatch-string)

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<string> Added { get; }` [#](#property-added)

[YamlPatchReport.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Model/YamlPatchReport.cs#L19)

Gets the paths of entries, items and documents the patch added, in the order they were added: add, copy and the target of move where nothing was, and new keys of a merge patch.

`public IReadOnlyList<string> Replaced { get; }` [#](#property-replaced)

[YamlPatchReport.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Model/YamlPatchReport.cs#L25)

Gets the paths whose value the patch changed: replace, and add, copy or move onto an existing key. A merge patch lists only values that differ from the patch.

`public IReadOnlyList<string> Removed { get; }` [#](#property-removed)

[YamlPatchReport.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Model/YamlPatchReport.cs#L28)

Gets the paths the patch removed: remove, the source of move, and merge patch nulls.

`public IReadOnlyList<OfficeDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[YamlPatchReport.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Yaml/Model/YamlPatchReport.cs#L33)

Gets the findings the patch recorded; they are also added to the document's [YamlDocument.Diagnostics](/api/yaml/officeimo-yaml-yamldocument/).

<!-- PowerForge markdown artifact sha256:B4183BF534EE1C5A974294D7A79BCA5ED4F3853429CA9D5FAEFDB9A97C69116C -->
