This repository has no description
1(*---------------------------------------------------------------------------
2 Copyright (c) 2025 Anil Madhavapeddy. All rights reserved.
3 SPDX-License-Identifier: ISC
4 ---------------------------------------------------------------------------*)
5
6(** Unknown field preservation for forward compatibility.
7
8 All JMAP objects preserve unknown fields to support future spec versions
9 and custom extensions.
10
11 @canonical Jmap.Proto.Unknown *)
12
13type t = Jsont.json
14(** Unknown or unrecognized JSON object members as a generic JSON value.
15 This is always an object containing the unknown fields. *)
16
17val empty : t
18(** [empty] is the empty set of unknown fields (an empty JSON object). *)
19
20val is_empty : t -> bool
21(** [is_empty u] returns [true] if there are no unknown fields. *)
22
23val mems : (t, t, Jsont.mem list) Jsont.Object.Mems.map
24(** [mems] is the jsont member map for preserving unknown fields.
25 Use with [Jsont.Object.keep_unknown]. *)