Documentation
Table of Contents

Enum EditKind

Namespace
IntentSharp.Edits
Assembly
IntentSharp.dll

What a ProposedEdit changes.

public enum EditKind
Extension Methods

Fields

Document = 0

A new version of a document in the document store, such as a compiled rule companion or a rewrite of an intent file. Document names the document and Content holds its whole new text.

Mapping = 1

A replacement of a compiled mapping, named by MappingKey. Content holds the replacement revision as JSON, which also names its namespace, and BasedOn the revision it replaces. The library refuses a mapping edit while no mapping store is configured, and refuses one whose content does not load, is not the mapping MappingKey names, or has steps that do not fit its shapes, before any writer sees it. A mapping is not a document, so the reasons for a refusal are in Reasons only and Problems stays empty. On a replacement the library compiled, Reason is the JSON form of the MappingRetiredReason the replaced revision is retired with, so a writer that shows reasons to a person reads its category, step, op and path from that JSON.

Other = 2

A kind this version of the library does not know. The library refuses such an edit and stores nothing.