Expand description
The JSON-Patch-style op shared by every patch tool, and its parsing with teaching errors.
StructsΒ§
- PatchOp
- One edit. Which fields an op takes depends on
opand the tool; parsing checks them. - Transfer
- What a
moveorcopytakes and where it puts it.
EnumsΒ§
- Op
- One op after
parse_ops: it has every field its tool requires for it and no field it doesnβt take. - OpKind
- What a patch op does, as agents name it in
op. - Patch
Target - Which patch tool the ops are for; decides the allowed ops and fields.
- Position
- Where an op puts items: next to the sibling at
path, or at an end of the list atpath.
ConstantsΒ§
- ALL_
FIELDS π - REORDER_
ON_ πPAGE_ FIX
FunctionsΒ§
- check_
unknown_ πfields - field_
not_ πallowed - from_
wire_ πname - The unit variant whose wire name is
name. - invalid_
position π - missing_
field π - optional_
string π - parse_
op π - parse_
ops - Parses raw op objects, rejecting unknown fields and fields the op doesnβt take.
- quote_
list π itemsdouble-quoted and comma-separated, for error messages.